do temporary workaround for sveltejs/sapper#79
This commit is contained in:
parent
00a36636cf
commit
03c98ab31f
|
@ -35,10 +35,15 @@ module.exports = {
|
||||||
},
|
},
|
||||||
!isDev && {
|
!isDev && {
|
||||||
test: /\.css$/,
|
test: /\.css$/,
|
||||||
use: ExtractTextPlugin.extract({
|
/* disable while https://github.com/sveltejs/sapper/issues/79 is open */
|
||||||
|
/*use: ExtractTextPlugin.extract({
|
||||||
fallback: 'style-loader',
|
fallback: 'style-loader',
|
||||||
use: [{ loader: 'css-loader', options: { sourceMap:isDev } }]
|
use: [{ loader: 'css-loader', options: { sourceMap:isDev } }]
|
||||||
})
|
}) */
|
||||||
|
use: [
|
||||||
|
{ loader: 'style-loader' },
|
||||||
|
{ loader: 'css-loader' }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
].filter(Boolean)
|
].filter(Boolean)
|
||||||
},
|
},
|
||||||
|
@ -51,7 +56,8 @@ module.exports = {
|
||||||
].concat(isDev ? [
|
].concat(isDev ? [
|
||||||
new webpack.HotModuleReplacementPlugin()
|
new webpack.HotModuleReplacementPlugin()
|
||||||
] : [
|
] : [
|
||||||
new ExtractTextPlugin('main.css'),
|
/* disable while https://github.com/sveltejs/sapper/issues/79 is open */
|
||||||
|
//new ExtractTextPlugin('main.css'),
|
||||||
new webpack.optimize.ModuleConcatenationPlugin(),
|
new webpack.optimize.ModuleConcatenationPlugin(),
|
||||||
new UglifyJSPlugin()
|
new UglifyJSPlugin()
|
||||||
]).filter(Boolean),
|
]).filter(Boolean),
|
||||||
|
|
Loading…
Reference in New Issue