Updating Laravel to 5.4 but having issues getting the includePaths to work for sass. When I build it throws error: Module build failed: undefined
File to import not found or unreadable: bootstrap/variables.
I used to do this with gulp:
mix.sass('app.scss', null, null, {includePaths: ['node_modules/bootstrap-sass/assets/stylesheets']})
With webpack trying like this:
const { mix } = require('laravel-mix');
const webpack = require('webpack');
const path = require('path');
mix
.sass('resources/assets/sass/frontend/app.scss', 'public/css/frontend.css')
.js([
'resources/assets/js/frontend/app.js',
'resources/assets/js/plugins.js'
], 'public/js/frontend.js')
.webpackConfig({
//devtool: 'source-map',
resolve: {
alias: {
'TweenLite': 'gsap/TweenLite'
}
},
plugins: [
new webpack.LoaderOptionsPlugin({
options: {
sassLoader: {
includePaths: [ './', './node_modules/bootstrap-sass/assets/stylesheets' ]
}
}
})
]
})
.version();
Is there a way of debugging this to see if my includePaths is being read at all?