Simplify Webpack CSS

This commit is contained in:
Alex Gleason
2020-05-31 23:09:21 -05:00
parent 4ddcb9bcd0
commit 9d242a403b
6 changed files with 3 additions and 448 deletions

View File

@ -8,9 +8,6 @@ const { readFileSync } = require('fs');
const configPath = join(__dirname, 'config', 'webpacker.yml');
const settings = safeLoad(readFileSync(configPath), 'utf8')[env.NODE_ENV];
const themePath = join(__dirname, '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,