webpack/index.js --> webpack.config.js
This commit is contained in:
parent
66437ce394
commit
25075074ff
|
@ -16,9 +16,9 @@
|
||||||
"url": "https://gitlab.com/soapbox-pub/soapbox-fe/-/issues"
|
"url": "https://gitlab.com/soapbox-pub/soapbox-fe/-/issues"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "npx webpack-dev-server --config webpack",
|
"start": "npx webpack-dev-server",
|
||||||
"dev": "${npm_execpath} run start",
|
"dev": "${npm_execpath} run start",
|
||||||
"build": "npx webpack --config webpack",
|
"build": "npx webpack",
|
||||||
"jsdoc": "npx jsdoc -c jsdoc.conf.js",
|
"jsdoc": "npx jsdoc -c jsdoc.conf.js",
|
||||||
"manage:translations": "node ./webpack/translationRunner.js",
|
"manage:translations": "node ./webpack/translationRunner.js",
|
||||||
"test": "${npm_execpath} run test:lint && ${npm_execpath} run test:jest",
|
"test": "${npm_execpath} run test:lint && ${npm_execpath} run test:jest",
|
||||||
|
|
|
@ -6,7 +6,7 @@ switch(NODE_ENV) {
|
||||||
case 'development':
|
case 'development':
|
||||||
case 'production':
|
case 'production':
|
||||||
case 'test':
|
case 'test':
|
||||||
module.exports = require(`./${NODE_ENV}`); break;
|
module.exports = require(`./webpack/${NODE_ENV}`); break;
|
||||||
default:
|
default:
|
||||||
console.error('ERROR: NODE_ENV must be set to either `development`, `test`, or `production`.');
|
console.error('ERROR: NODE_ENV must be set to either `development`, `test`, or `production`.');
|
||||||
process.exit(1);
|
process.exit(1);
|
Loading…
Reference in New Issue