mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-21 08:45:53 +00:00
Get all css chunks + fix error handling
This commit is contained in:
parent
876054ed48
commit
d716b2ba39
@ -38,7 +38,10 @@ if (process.env.NODE_ENV === 'production') {
|
||||
vueConfig.loaders.less = ExtractTextPlugin.extract({ loader: 'css-loader!less-loader', fallbackLoader: 'vue-style-loader' })
|
||||
|
||||
config.plugins.push(
|
||||
new ExtractTextPlugin('style.css'),
|
||||
new ExtractTextPlugin({
|
||||
filename: 'style.css',
|
||||
allChunks: true
|
||||
}),
|
||||
// this is needed in webpack 2 for minifying CSS
|
||||
new webpack.LoaderOptionsPlugin({
|
||||
minimize: true
|
||||
|
@ -61,7 +61,7 @@ class Nuxt {
|
||||
})
|
||||
.catch((err) => {
|
||||
if (typeof cb === 'function') cb(err)
|
||||
return err
|
||||
return Promise.reject(err)
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user