We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd02fe8 commit 4cc9a99Copy full SHA for 4cc9a99
1 file changed
webpack.config.js
@@ -1,6 +1,8 @@
1
'use strict';
2
3
-module.exports = require('ng2-webpack-config').webpack.dev({
+const _ = require('lodash');
4
+
5
+const webpackConfig = require('ng2-webpack-config').webpack.dev({
6
src: 'demo',
7
dist: 'demo-build',
8
htmlIndexes: ['index.html'],
@@ -14,3 +16,16 @@ module.exports = require('ng2-webpack-config').webpack.dev({
14
16
alias: {},
15
17
baseUrl: '/'
18
});
19
20
+const loaders = _.filter(webpackConfig.module.loaders, loader => {
21
+ return !loader.test.test('.css');
22
+});
23
24
+loaders.push({
25
+ test: /\.css$/,
26
+ loader: 'style-loader!css-loader'
27
+})
28
29
+webpackConfig.module.loaders = loaders;
30
31
+module.exports = webpackConfig;
0 commit comments