Skip to content

Commit b32078d

Browse files
committed
Add helpers for building
1 parent daf9a20 commit b32078d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,8 @@
5858
},
5959
"scripts": {
6060
"build:filemanager": "./node_modules/babel-cli/bin/babel.js public/themes/pterodactyl/js/frontend/files/src --source-maps --out-file public/themes/pterodactyl/js/frontend/files/filemanager.min.js",
61-
"watch": "./node_modules/gulp-cli/bin/gulp.js watch",
62-
"build": "./node_modules/gulp-cli/bin/gulp.js default",
63-
"build:components": "./node_modules/gulp-cli/bin/gulp.js components",
64-
"build:styles": "./node_modules/gulp-cli/bin/gulp.js styles",
65-
"build:scripts": "./node_modules/gulp-cli/bin/gulp.js scripts"
61+
"watch": "APP_ENV=development ./node_modules/.bin/webpack --watch",
62+
"build:dev": "APP_ENV=development ./node_modules/.bin/webpack",
63+
"build:prod": "APP_ENV=production ./node_modules/.bin/webpack"
6664
}
6765
}

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class TailwindExtractor {
2020
}
2121

2222
module.exports = {
23-
mode: 'development',
23+
mode: process.env.APP_ENV,
2424
devtool: 'source-map',
2525
performance: {
2626
hints: false,

0 commit comments

Comments
 (0)