共计 246 个字符,预计需要花费 1 分钟才能阅读完成。
#bash
[root@localhost] webpack-cli --env development
#webpack.config.js
module.exports = function (env, args) {
return {
mode: env || 'development',
entry: "./src/app.js",
output: {
filename: "app.js",
path: path.resolve(__dirname, env === 'development' ? 'dist': 'public')
}
}
};
正文完
发表至: JavaScript
2019-06-05