Created
November 10, 2017 09:09
-
-
Save nulpatrol/b7e28330df49a7a014d4cf4af6f8d680 to your computer and use it in GitHub Desktop.
webpack.js
This file contains hidden or 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.js('resources/assets/js/app.js', 'public/js') | |
| .sass('resources/assets/sass/app.scss', 'public/css') | |
| .webpackConfig({ | |
| module: { | |
| rules: [ | |
| { | |
| test: /\.(js|vue)$/, | |
| enforce: 'pre', | |
| loader: 'eslint-loader', | |
| options: { | |
| emitWarning: true, | |
| }, | |
| }, | |
| ], | |
| }, | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment