mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
Always build with /static as the public path for the assets
This commit is contained in:
parent
92978269cc
commit
173d3d19b7
@ -20,15 +20,11 @@ config.entry.unshift(`webpack-dev-server/client?http://${HOST}:${PORT}/`,
|
||||
'webpack/hot/dev-server');
|
||||
config.plugins.push(new webpack.HotModuleReplacementPlugin());
|
||||
|
||||
// Specify output location for bundled files
|
||||
config.output.publicPath = '/static/';
|
||||
|
||||
// Configure server
|
||||
const compiler = webpack(config);
|
||||
|
||||
const server = new WebpackDevServer(compiler, {
|
||||
publicPath: config.output.publicPath,
|
||||
contentBase: './build',
|
||||
historyApiFallback: {
|
||||
index: config.output.publicPath
|
||||
},
|
||||
|
@ -191,6 +191,7 @@ const config = {
|
||||
output: {
|
||||
filename: PRODUCTION ? 'js/bundle.min.js' : 'js/bundle.js',
|
||||
path: PRODUCTION ? PATHS.DIST : PATHS.BUILD,
|
||||
publicPath: '/static/',
|
||||
},
|
||||
|
||||
debug: !PRODUCTION,
|
||||
|
Loading…
Reference in New Issue
Block a user