Skip to content

Commit

Permalink
Fix serve bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Terwer committed Jan 17, 2019
1 parent e28fbe7 commit 45ec977
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/webapp/webpack.config.js
Expand Up @@ -33,7 +33,7 @@ module.exports = (env, argv) => {
entry: entryFile,
output: {
filename: renderMode === 'client'
? '[name].[chunkhash:6].js' :
? '[name].[hash:6].js' :
(renderMode === 'server:client'
? 'client.js' :
'server.js'),
Expand Down Expand Up @@ -65,7 +65,7 @@ module.exports = (env, argv) => {
]
},
devServer: {
open: false,
open: true,
hot: true,
port: 8000
},
Expand All @@ -78,7 +78,7 @@ module.exports = (env, argv) => {
}),
// CSS剥离
new MiniCssExtractPlugin({
filename: renderMode === 'client' ? 'common.[chunkhash:6].css' : 'common.css'
filename: renderMode === 'client' ? 'common.[hash:6].css' : 'common.css'
})
]
: [
Expand Down

0 comments on commit 45ec977

Please sign in to comment.