angular-cli-v6 - --dev 选项在 Angular CLI 中不起作用
问题描述
解决方案
是的,他们更改了生成的捆绑包的名称。
角cli v 1.7
node_modules/@angular/cli/models/webpack-configs/common.js
output: {
path: path.resolve(buildOptions.outputPath),
publicPath: buildOptions.deployUrl,
filename: `[name]${hashFormat.chunk}.bundle.js`,
chunkFilename: `[id]${hashFormat.chunk}.chunk.js`
}
角cli v6
node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/common.js
output: {
path: path.resolve(root, buildOptions.outputPath),
publicPath: buildOptions.deployUrl,
filename: `[name]${hashFormat.chunk}.js`,
},
并且 dev 是使用ng build
AFAIK时的默认模式
推荐阅读
- django - /register 'email' 处的 MultiValueDictKeyError
- scala - 如何在heroku上部署lagom scala
- javascript - 如何访问 chrome 浏览器的打印对话框以使用 chrome 扩展进行 DOM 操作
- jenkins - 来自服务器的错误(未找到):deployments.apps
- python - 将数据框列除以特定单元格
- flutter - 在 Flutter 中接收与 WhatsApp 相同的呼叫
- php - 从 json 数组 PHP 范围 [0] => Array , [1] => Array 获取数据
- powershell - 如何使用powershell将“\\”替换为“\”?
- python - 添加 df 列在另一个 df 中为索引值和动态源列查找匹配值?
- javascript - 如何使 Javascript Count Up 计时器工作