Fix NODE_ENV issue on `yarn start`

stable/1.0.x
Alex Gleason 2020-04-16 18:50:41 -05:00
rodzic 14cdd31388
commit 70b04a72cc
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
"name": "soapbox-fe",
"version": "0.0.0",
"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",
"build:development": "NODE_ENV=development npx webpack --config webpack/development.js",
"build:production": "NODE_ENV=production npx webpack --config webpack/production.js",

Wyświetl plik

@ -6,7 +6,7 @@ const { safeLoad } = require('js-yaml');
const { readFileSync } = require('fs');
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 themes = safeLoad(readFileSync(themePath), 'utf8');