From 6c24b529ccb5c7dda1c0d2de231bd2506be435bb Mon Sep 17 00:00:00 2001 From: Phan An Date: Sat, 29 May 2021 16:39:07 +0200 Subject: [PATCH] feat: replace local @import in scss with global webpack config --- resources/assets | 2 +- webpack.mix.js | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/resources/assets b/resources/assets index 61e66207..e52e53ae 160000 --- a/resources/assets +++ b/resources/assets @@ -1 +1 @@ -Subproject commit 61e66207a0b9c791d943f6d5d850eba27d4c2309 +Subproject commit e52e53aee5a2bc352cbbb51effb7137f5e1c7d97 diff --git a/webpack.mix.js b/webpack.mix.js index 75563613..6be17a06 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -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"; + ` + } + } + ] } })