Fix NODE_ENV issue on yarn start
This commit is contained in:
parent
14cdd31388
commit
70b04a72cc
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
"name": "soapbox-fe",
|
"name": "soapbox-fe",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "npx webpack-dev-server --config webpack/development.js",
|
"start": "NODE_ENV=development npx webpack-dev-server --config webpack/development.js",
|
||||||
"dev": "${npm_execpath} run start",
|
"dev": "${npm_execpath} run start",
|
||||||
"build:development": "NODE_ENV=development npx webpack --config webpack/development.js",
|
"build:development": "NODE_ENV=development npx webpack --config webpack/development.js",
|
||||||
"build:production": "NODE_ENV=production npx webpack --config webpack/production.js",
|
"build:production": "NODE_ENV=production npx webpack --config webpack/production.js",
|
||||||
|
|
|
@ -6,7 +6,7 @@ const { safeLoad } = require('js-yaml');
|
||||||
const { readFileSync } = require('fs');
|
const { readFileSync } = require('fs');
|
||||||
|
|
||||||
const configPath = join(__dirname, 'config', 'webpacker.yml');
|
const configPath = join(__dirname, 'config', 'webpacker.yml');
|
||||||
const settings = safeLoad(readFileSync(configPath), 'utf8')[env.RAILS_ENV || env.NODE_ENV];
|
const settings = safeLoad(readFileSync(configPath), 'utf8')[env.NODE_ENV];
|
||||||
|
|
||||||
const themePath = join(__dirname, 'config', 'themes.yml');
|
const themePath = join(__dirname, 'config', 'themes.yml');
|
||||||
const themes = safeLoad(readFileSync(themePath), 'utf8');
|
const themes = safeLoad(readFileSync(themePath), 'utf8');
|
||||||
|
|
Loading…
Reference in a new issue