Skip to content

Instantly share code, notes, and snippets.

@nulpatrol
Created November 10, 2017 09:09
Show Gist options
  • Save nulpatrol/b7e28330df49a7a014d4cf4af6f8d680 to your computer and use it in GitHub Desktop.
Save nulpatrol/b7e28330df49a7a014d4cf4af6f8d680 to your computer and use it in GitHub Desktop.
webpack.js
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