feat: replace local @import in scss with global webpack config

This commit is contained in:
Phan An 2021-05-29 16:39:07 +02:00
parent 95ed9ab221
commit 6c24b529cc
No known key found for this signature in database
GPG key ID: A81E4477F0BB6FDC
2 changed files with 15 additions and 1 deletions

@ -1 +1 @@
Subproject commit 61e66207a0b9c791d943f6d5d850eba27d4c2309
Subproject commit e52e53aee5a2bc352cbbb51effb7137f5e1c7d97

View file

@ -15,6 +15,20 @@ mix.webpackConfig({
proxy: {
'/': 'http://127.0.0.1:8000/'
}
},
module: {
rules: [
{
test: /\.scss$/,
loader: "sass-loader",
options: {
prependData: `
@import "resources/assets/sass/partials/_vars.scss";
@import "resources/assets/sass/partials/_mixins.scss";
`
}
}
]
}
})