Last active
July 28, 2019 09:59
-
-
Save belocer/b43d5c969ec5a4739a822dfb3351dbf9 to your computer and use it in GitHub Desktop.
Laravel webpack.mix.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/node_modules | |
/public/hot | |
/public/build | |
/public/storage | |
/storage/*.key | |
/vendor | |
.env | |
.phpunit.result.cache | |
Homestead.json | |
Homestead.yaml | |
npm-debug.log | |
yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"private": true, | |
"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": "npm run development -- --watch", | |
"watch-poll": "npm run watch -- --watch-poll", | |
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --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 --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" | |
}, | |
"devDependencies": { | |
"axios": "^0.18", | |
"bootstrap": "^4.1.0", | |
"cross-env": "^5.1", | |
"eslint": "^6.1.0", | |
"jquery": "^3.2", | |
"laravel-mix": "^4.0.7", | |
"lodash": "^4.17.5", | |
"popper.js": "^1.12", | |
"resolve-url-loader": "^2.3.1", | |
"sass": "^1.15.2", | |
"sass-loader": "^7.1.0", | |
"vue": "^2.5.17", | |
"vue-template-compiler": "^2.6.10" | |
}, | |
"dependencies": {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mix = require('laravel-mix'); | |
/* | |
|-------------------------------------------------------------------------- | |
| Mix Asset Management | |
|-------------------------------------------------------------------------- | |
| | |
| Mix provides a clean, fluent API for defining some Webpack build steps | |
| for your Laravel application. By default, we are compiling the Sass | |
| file for the application as well as bundling up all the JS files. | |
| | |
*/ | |
mix | |
.setPublicPath('public/build') | |
.setResourceRoot('build') | |
.js('resources/js/app.js', 'js') | |
.sass('resources/sass/app.scss', 'css') | |
.version(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment