Skip to content

Instantly share code, notes, and snippets.

@dpmango
Created November 15, 2020 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpmango/fde87f28e53ceffea2dfd76aea3def01 to your computer and use it in GitHub Desktop.
Save dpmango/fde87f28e53ceffea2dfd76aea3def01 to your computer and use it in GitHub Desktop.
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
loader: {
scss: 'vue-style-loader!css-loader!sass-loader',
},
},
},
{
test: /\.(css|scss|sass)$/,
use: [
'style-loader',
MiniCssExtractPlugin.loader,
{
loader: 'css-loader',
options: { sourceMap: true },
},
{
loader: 'postcss-loader',
options: {
sourceMap: true,
config: { path: path.join(__dirname, './postcss.config.js') },
},
},
{
loader: 'sass-loader',
options: {
sourceMap: true,
additionalData: `@import "@/theme/utils.scss";`,
},
},
],
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment