我将Vue 2.0项目升级到Vue 2.5,但现在无法找到Reflect.js.map
。该项目仍然可以在没有.map文件的情况下工作,但我怎样才能摆脱错误?我在tsconfig.json中启用了源映射,但这可能仅适用于.ts文件。我不确定如何在webpack.config.json中启用/禁用它。
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/../project/dist/Reflect.js.map
tsconfig.json
"sourceMap": true
webpack.config.json
entry: './src/index.ts',
output: {
path: path.resolve(__dirname, './dist'),
publicPath: '/dist/',
filename: 'bundle.js'
},
devtool: "source-map",
module: {..}