sforkowany z mirror/soapbox
Webpack: use FE_BASE_PATH as publicPath
rodzic
f8270181ab
commit
868f514f5b
|
@ -11,6 +11,8 @@ const { UnusedFilesWebpackPlugin } = require('unused-files-webpack-plugin');
|
||||||
const { env, settings, output } = require('./configuration');
|
const { env, settings, output } = require('./configuration');
|
||||||
const rules = require('./rules');
|
const rules = require('./rules');
|
||||||
|
|
||||||
|
const { FE_BASE_PATH } = require(join(__dirname, '..', 'app', 'soapbox', 'build_config'));
|
||||||
|
|
||||||
const htmlWebpackPluginConfig = {
|
const htmlWebpackPluginConfig = {
|
||||||
template: 'app/index.ejs',
|
template: 'app/index.ejs',
|
||||||
chunksSortMode: 'manual',
|
chunksSortMode: 'manual',
|
||||||
|
@ -37,7 +39,7 @@ module.exports = {
|
||||||
chunkFilename: 'packs/js/[name]-[chunkhash].chunk.js',
|
chunkFilename: 'packs/js/[name]-[chunkhash].chunk.js',
|
||||||
hotUpdateChunkFilename: 'packs/js/[id]-[hash].hot-update.js',
|
hotUpdateChunkFilename: 'packs/js/[id]-[hash].hot-update.js',
|
||||||
path: output.path,
|
path: output.path,
|
||||||
publicPath: '/',
|
publicPath: FE_BASE_PATH,
|
||||||
},
|
},
|
||||||
|
|
||||||
optimization: {
|
optimization: {
|
||||||
|
|
Ładowanie…
Reference in New Issue