-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
Does webpack-dev-server supports bundle names with [hash] in file name?
I have the following setup:
module.exports = {
context: __dirname,
entry: './app/test.js',
output: {
filename: '[name].[hash].js',
path: path.join(__dirname, "dist"),
},
module: {
loaders: [{ test: /\.js$/, loader: 'babel', exclude: /node_modules/, query: { presets: ['es2015']}} ]
},
plugins: [new ExtractTextPlugin("[hash].css"), new AssetsWebpackPlugin()]
}
All assets generated correctly, but how can I reference it in my index.html? Js or css file name depends on [hash] value and changes with every build.
cema-sp, gbozee, meowgorithm and devrafalko