mirror of https://github.com/status-im/consul.git
Merge pull request #15113 from hashicorp/ui/fix-auto-import-public-url
ui: fix - customize ember-auto-import publicAssetURL in production
This commit is contained in:
commit
cbbc0036b6
|
@ -17,6 +17,7 @@ module.exports = function (defaults, $ = process.env) {
|
||||||
|
|
||||||
$ = utils.env($);
|
$ = utils.env($);
|
||||||
const env = EmberApp.env();
|
const env = EmberApp.env();
|
||||||
|
const isProd = ['production'].includes(env);
|
||||||
const prodlike = ['production', 'staging'];
|
const prodlike = ['production', 'staging'];
|
||||||
const devlike = ['development', 'staging'];
|
const devlike = ['development', 'staging'];
|
||||||
const sourcemaps = !['production'].includes(env) && !$('BABEL_DISABLE_SOURCEMAPS', false);
|
const sourcemaps = !['production'].includes(env) && !$('BABEL_DISABLE_SOURCEMAPS', false);
|
||||||
|
@ -197,6 +198,7 @@ module.exports = function (defaults, $ = process.env) {
|
||||||
autoImport: {
|
autoImport: {
|
||||||
// allows use of a CSP without 'unsafe-eval' directive
|
// allows use of a CSP without 'unsafe-eval' directive
|
||||||
forbidEval: true,
|
forbidEval: true,
|
||||||
|
publicAssetURL: isProd ? '{{.ContentPath}}assets' : undefined,
|
||||||
},
|
},
|
||||||
codemirror: {
|
codemirror: {
|
||||||
keyMaps: ['sublime'],
|
keyMaps: ['sublime'],
|
||||||
|
|
Loading…
Reference in New Issue