标签:new .config base file plugin src port npm 安装
var webpack = require(‘webpack‘);
module.exports = {
entry: __dirname + ‘/src/js/index.js‘,
output: {
path: __dirname + ‘/assets/js‘,
filename: "index.js",
publicPath: ‘temp/‘
},
devServer:{
contentBase: "./",
host: ‘127.0.0.1‘,
port: ‘3333‘
},
plugins: [
new webpack.HotModuleReplacementPlugin()
]
}
标签:new .config base file plugin src port npm 安装
原文地址:http://www.cnblogs.com/wangujianchi/p/6399673.html