Webpack version: 2.1.0-beta.25
Please tell us about your environment: Linux
Current behavior: If set entry name or output.fileName with prefix ‘/’,the entry file will be responded as 404.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.
const webpack = require('webpack'); const path = require('path');
module.exports = { entry: { '/app': './src/index.js', },
output: { path: path.resolve(__dirname, "dist"), filename: '[name].js' }, devServer: { historyApiFallback: true, port: 3000, watchOptions: { aggregateTimeout: 300, poll: 1000 } }
};
OR
output: {
path: path.resolve(__dirname, "dist"),
filename: '\[name].js'
},