Skip to content

Commit

Permalink
setup wepback to process newly added styles.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
kajan committed Feb 14, 2021
1 parent c0e6fe8 commit 9c9d608
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion AspNetCoreVueMpa.Web/ClientApp/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const VueLoaderPlugin = require('vue-loader/lib/plugin');
const glob = require('glob');
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');

const entries = {};
const IGNORE_PATHS = ['unused'];
Expand Down Expand Up @@ -28,10 +29,23 @@ module.exports = {
{
test: /\.vue$/,
loader: 'vue-loader',
}
},
{
test: [
path.join(__dirname, 'assets/styles/styles.scss'),
],
use: [
MiniCssExtractPlugin.loader,
'css-loader',
'sass-loader',
]
},
]
},
plugins: [
new VueLoaderPlugin(),
new MiniCssExtractPlugin({
filename: 'css/[name].bundle.css'
}),
]
}

0 comments on commit 9c9d608

Please sign in to comment.