Merge pull request #2699 from alecmerdler/fix-webpack-too-many-bundles

Fix Webpack for Local Development
This commit is contained in:
Alec Merdler 2017-06-13 13:22:13 -07:00 committed by GitHub
commit 544f4ed41b

View file

@ -5,7 +5,7 @@ var config = {
entry: "./static/js/main.ts",
output: {
path: path.resolve(__dirname, "static/build"),
filename: 'quay-frontend-[hash].js'
filename: 'quay-frontend.js'
},
resolve: {
extensions: [".ts", ".tsx", ".js", ".scss"],
@ -64,6 +64,7 @@ if (process.env.NODE_ENV === 'production') {
mangle: false
})
);
config.output.filename = 'quay-frontend-[hash].js';
}
module.exports = config;