fix output config value
This commit is contained in:
parent
a55fe9914b
commit
17f983985a
@ -1,17 +1,32 @@
|
|||||||
const pkg = require('./package')
|
const pkg = require('./package');
|
||||||
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
|
const webpack = require('webpack');
|
||||||
|
|
||||||
|
const isProd = process.env.NODE_ENV === 'production';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
apiPath: 'stubs/api',
|
apiPath: 'stubs/api',
|
||||||
|
apps: {
|
||||||
|
main: {
|
||||||
|
version: 'master',
|
||||||
|
name: 'cleanName',
|
||||||
|
},
|
||||||
|
},
|
||||||
webpackConfig: {
|
webpackConfig: {
|
||||||
output: {
|
output: {
|
||||||
publicPath: `/static/${pkg.name}/${process.env.VERSION || pkg.version}/`
|
publicPath: isProd
|
||||||
}
|
? '/'
|
||||||
|
: `/static/${pkg.name}/${process.env.VERSION || pkg.version}/`,
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
new HtmlWebpackPlugin({}),
|
||||||
|
new webpack.DefinePlugin({
|
||||||
|
IS_PROD: process.env.NODE_ENV === 'production',
|
||||||
|
}),
|
||||||
|
],
|
||||||
},
|
},
|
||||||
/* use https://kc.admin.inno-js.ru/ to create config, navigations and features */
|
/* use https://kc.admin.inno-js.ru/ to create config, navigations and features */
|
||||||
navigations: {
|
navigations: {},
|
||||||
},
|
features: {},
|
||||||
features: {
|
config: {},
|
||||||
},
|
};
|
||||||
config: {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user