我正在运行webpack-dev-server,但它仍然提供旧文件,有什么想法吗?
我已在项目中删除了对foo.js的任何引用。
我的webpack配置:
我已在项目中删除了对foo.js的任何引用。
我的webpack配置:
module.exports = {
context: __dirname + "/app",
entry: "./main.js",
output: {
path: __dirname + "/dist",
filename: "bundle.js"
},
devtool: "#source-map",
module: {
loaders: [
// Transpile any JavaScript file:
{test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader'}
]
},
resolve: {
// you can now require('file') instead of require('file.js')
extensions: ['', '.js', '.json']
}
}