Skip to content

Instantly share code, notes, and snippets.

@radicalloop
Created December 2, 2019 09:17
Show Gist options
  • Save radicalloop/2f2a4dd09803f9e7161d16984cb9fd70 to your computer and use it in GitHub Desktop.
Save radicalloop/2f2a4dd09803f9e7161d16984cb9fd70 to your computer and use it in GitHub Desktop.
Scripts for laravel mix
"scripts": {
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"hot": "cross-env NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run 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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment