Integrate demo env

This commit is contained in:
Phan An 2019-08-24 20:01:09 +02:00
parent 91a8caefa1
commit 0860556ead
3 changed files with 5 additions and 3 deletions

View file

@ -102,6 +102,7 @@
"cy": "kill-port 8088 && php artisan serve --port=8088 & wait-on http://localhost:8088 && cypress run --browser chrome",
"build": "yarn production",
"prod": "yarn production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"build-demo": "cross-env NODE_ENV=demo node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
}
}

@ -1 +1 @@
Subproject commit a86ef5b1c156f02360c533a4c1f063043942a5b8
Subproject commit 0b468f1a254e9da773e2d90226cc8db69834303e

View file

@ -14,7 +14,8 @@ module.exports = {
},
plugins: [
new webpack.DefinePlugin({
KOEL_ENV: '"web"'
KOEL_ENV: '"web"',
NODE_ENV: JSON.stringify(process.env.NODE_ENV || 'development')
})
],
module: {