diff options
author | kibigo! <marrus-sh@users.noreply.github.com> | 2017-07-18 11:21:04 -0700 |
---|---|---|
committer | kibigo! <marrus-sh@users.noreply.github.com> | 2017-07-18 11:28:52 -0700 |
commit | 0a678cf377c6dd91c439fa91f75782e457836639 (patch) | |
tree | 08db38a3fc25ce4896b26cc51ea89637bb53802c /config/webpack | |
parent | 7a77f7b3bbafff6b8c9899e1c4404ab5e5cde853 (diff) |
Fix for stylesheet split
Diffstat (limited to 'config/webpack')
-rw-r--r-- | config/webpack/shared.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/webpack/shared.js b/config/webpack/shared.js index 4d865b816..98e864a66 100644 --- a/config/webpack/shared.js +++ b/config/webpack/shared.js @@ -44,7 +44,10 @@ module.exports = { plugins: [ new webpack.EnvironmentPlugin(JSON.parse(JSON.stringify(env))), - new ExtractTextPlugin(env.NODE_ENV === 'production' ? '[name]-[hash].css' : '[name].css'), + new ExtractTextPlugin({ + filename: env.NODE_ENV === 'production' ? '[name]-[hash].css' : '[name].css', + allChunks: true, + }), new ManifestPlugin({ publicPath: output.publicPath, writeToFileEmit: true, |