Add helpers for building

This commit is contained in:
Dane Everitt 2018-06-03 19:56:45 -07:00
parent daf9a20e62
commit b32078d83c
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 4 additions and 6 deletions

View file

@ -58,10 +58,8 @@
},
"scripts": {
"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",
"watch": "./node_modules/gulp-cli/bin/gulp.js watch",
"build": "./node_modules/gulp-cli/bin/gulp.js default",
"build:components": "./node_modules/gulp-cli/bin/gulp.js components",
"build:styles": "./node_modules/gulp-cli/bin/gulp.js styles",
"build:scripts": "./node_modules/gulp-cli/bin/gulp.js scripts"
"watch": "APP_ENV=development ./node_modules/.bin/webpack --watch",
"build:dev": "APP_ENV=development ./node_modules/.bin/webpack",
"build:prod": "APP_ENV=production ./node_modules/.bin/webpack"
}
}

View file

@ -20,7 +20,7 @@ class TailwindExtractor {
}
module.exports = {
mode: 'development',
mode: process.env.APP_ENV,
devtool: 'source-map',
performance: {
hints: false,