This commit is contained in:
mgabdev
2020-03-03 23:59:11 -05:00
parent 33952e424f
commit 143725b5bd
17 changed files with 34 additions and 176 deletions

View File

@@ -8,9 +8,6 @@ const { readFileSync } = require('fs');
const configPath = resolve('config', 'webpacker.yml');
const settings = safeLoad(readFileSync(configPath), 'utf8')[env.RAILS_ENV || env.NODE_ENV];
const themePath = resolve('config', 'themes.yml');
const themes = safeLoad(readFileSync(themePath), 'utf8');
function removeOuterSlashes(string) {
return string.replace(/^\/*/, '').replace(/\/*$/, '');
}
@@ -31,7 +28,6 @@ const output = {
module.exports = {
settings,
themes,
env: {
CDN_HOST: env.CDN_HOST,
NODE_ENV: env.NODE_ENV,