webpack/index.js --> webpack.config.js

merge-requests/766/head
Alex Gleason 2021-09-17 11:26:57 -05:00
rodzic 66437ce394
commit 25075074ff
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -16,9 +16,9 @@
"url": "https://gitlab.com/soapbox-pub/soapbox-fe/-/issues"
},
"scripts": {
"start": "npx webpack-dev-server --config webpack",
"start": "npx webpack-dev-server",
"dev": "${npm_execpath} run start",
"build": "npx webpack --config webpack",
"build": "npx webpack",
"jsdoc": "npx jsdoc -c jsdoc.conf.js",
"manage:translations": "node ./webpack/translationRunner.js",
"test": "${npm_execpath} run test:lint && ${npm_execpath} run test:jest",

Wyświetl plik

@ -6,7 +6,7 @@ switch(NODE_ENV) {
case 'development':
case 'production':
case 'test':
module.exports = require(`./${NODE_ENV}`); break;
module.exports = require(`./webpack/${NODE_ENV}`); break;
default:
console.error('ERROR: NODE_ENV must be set to either `development`, `test`, or `production`.');
process.exit(1);