8000 alter webpack config file · supercoderhawk/emr-processor@22ca9cc · GitHub
[go: up one dir, main page]

Skip to content

Commit 22ca9cc

Browse files
alter webpack config file
1 parent 1e7c07a commit 22ca9cc

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

webpack.renderer.config.js

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ let rendererConfig = {
2323
test: /\.css$/,
2424
use: ExtractTextPlugin.extract({fallback: 'style-loader', use: 'css-loader'})
2525
},
26+
{
27+
test: /\.scss$/,
28+
use: ExtractTextPlugin.extract({fallback: 'style-loader', use: 'css-loader'})
29+
},
30+
{
31+
test: /\.sass$/,
32+
use: ExtractTextPlugin.extract({fallback: 'style-loader', use: 'css-loader'})
33+
},
2634
{
2735
test: /\.html$/,
2836
use: 'vue-html-loader'
@@ -32,13 +40,20 @@ let rendererConfig = {
3240
use: {
3341
loader: 'vue-loader',
3442
options: {
43+
3544
loaders: {
3645
css: ExtractTextPlugin.extract({
3746
use: 'css-loader',
3847
fallback: 'vue-style-loader'
3948
}),
40-
sass: 'vue-style-loader!css-loader!sass-loader?indentedSyntax=1',
41-
scss: 'vue-style-loader!css-loader!sass-loader'
49+
sass: ExtractTextPlugin.extract({
50+
use: 'css-loader',
51+
fallback: 'vue-style-loader'
52+
}),
53+
scss: ExtractTextPlugin.extract({
54+
use: 'css-loader',
55+
fallback: 'vue-style-loader'
56+
})
4257
}
4358
}
4459
}
@@ -80,14 +95,11 @@ let rendererConfig = {
8095
]
8196
},
8297
plugins: [
83-
new ExtractTextPlugin('style.css'),
98+
new ExtractTextPlugin({filename:'style.css', allChunks: true}),
8499
new HtmlWebpackPlugin({
85100
inject: 'body',
86101
filename: 'index.html',
87102
template: './app/index.ejs',
88-
links: [
89-
'style.css'
90-
],
91103
appModules: process.env.NODE_ENV !== 'production'
92104
? path.resolve(__dirname, 'app/node_modules')
93105
: false,

0 commit comments

Comments
 (0)
0