sforkowany z mirror/soapbox
Fix NODE_ENV issue on `yarn start`
rodzic
14cdd31388
commit
70b04a72cc
|
@ -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",
|
||||
|
|
|
@ -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');
|
||||
|
|
Ładowanie…
Reference in New Issue