File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ var autoprefixer = require('autoprefixer');
12
12
var postcssVars = require ( 'postcss-simple-vars' ) ;
13
13
var postcssImport = require ( 'postcss-import' ) ;
14
14
15
+ const STATIC_PATH = process . env . STATIC_PATH || '/static' ;
16
+
15
17
const base = {
16
18
mode : process . env . NODE_ENV === 'production' ? 'production' : 'development' ,
17
19
devtool : 'cheap-module-source-map' ,
@@ -195,7 +197,7 @@ module.exports = [
195
197
output : {
196
198
libraryTarget : 'umd' ,
197
199
path : path . resolve ( 'dist' ) ,
198
- publicPath : '/static/'
200
+ publicPath : ` ${ STATIC_PATH } /`
199
201
} ,
200
202
externals : {
201
203
React : 'react' ,
@@ -208,7 +210,7 @@ module.exports = [
208
210
loader : 'file-loader' ,
209
211
options : {
210
212
outputPath : 'static/assets/' ,
211
- publicPath : '/static/ assets/'
213
+ publicPath : ` ${ STATIC_PATH } / assets/`
212
214
}
213
215
}
214
216
] )
You can’t perform that action at this time.
0 commit comments