Get all css chunks + fix error handling

This commit is contained in:
Sébastien Chopin 2016-11-08 01:51:59 +01:00
parent 876054ed48
commit d716b2ba39
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -61,7 +61,7 @@ class Nuxt {
})
.catch((err) => {
if (typeof cb === 'function') cb(err)
return err
return Promise.reject(err)
})
}