chore: update 3 file(s)
This commit is contained in:
@@ -15,7 +15,7 @@ export default (env, argv) => {
|
||||
mode: isProduction ? 'production' : 'development',
|
||||
|
||||
entry: {
|
||||
wwww: './www/chatv3.js'
|
||||
www: ['./www/chatv3.js', './www/style2.css']
|
||||
},
|
||||
|
||||
output: {
|
||||
@@ -46,7 +46,7 @@ export default (env, argv) => {
|
||||
new HtmlWebpackPlugin({
|
||||
template: './www/index.html',
|
||||
filename: 'index.html',
|
||||
chunks : ['wwww'],
|
||||
chunks : ['www'],
|
||||
inject : 'body',
|
||||
minify : isProduction
|
||||
}),
|
||||
@@ -84,8 +84,7 @@ export default (env, argv) => {
|
||||
hot : true,
|
||||
devMiddleware: { publicPath: '/' },
|
||||
static : [
|
||||
{ directory: path.resolve(__dirname, 'dist') },
|
||||
{ directory: path.resolve(__dirname, 'www'), publicPath: '/' }
|
||||
{ directory: path.resolve(__dirname, 'dist') }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user