From 575011855e08de1ec31cb6e90a6801911d92355e Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Thu, 30 Dec 2021 15:01:04 +0800 Subject: [PATCH] fix(nvue): preprocess scss --- .../vue-cli-plugin-uni/packages/sass-loader/dist/index.js | 1 - .../vue-cli-plugin-uni/packages/sass-loader/dist/options.json | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/vue-cli-plugin-uni/packages/sass-loader/dist/index.js b/packages/vue-cli-plugin-uni/packages/sass-loader/dist/index.js index bdb47b0943..fd43a6154e 100644 --- a/packages/vue-cli-plugin-uni/packages/sass-loader/dist/index.js +++ b/packages/vue-cli-plugin-uni/packages/sass-loader/dist/index.js @@ -35,7 +35,6 @@ function loader(content) { const options = (0, _loaderUtils.getOptions)(this) || {}; // fixed by xxxxxx const isNVue = !!options.nvue; - delete options.nvue; (0, _schemaUtils.default)(_options.default, options, { name: 'Sass Loader', baseDataPath: 'options' diff --git a/packages/vue-cli-plugin-uni/packages/sass-loader/dist/options.json b/packages/vue-cli-plugin-uni/packages/sass-loader/dist/options.json index 3430c7d8e6..ccd28c4be0 100644 --- a/packages/vue-cli-plugin-uni/packages/sass-loader/dist/options.json +++ b/packages/vue-cli-plugin-uni/packages/sass-loader/dist/options.json @@ -35,6 +35,10 @@ "webpackImporter": { "description": "Enables/Disables default `webpack` importer (https://github.com/webpack-contrib/sass-loader#webpackimporter).", "type": "boolean" + }, + "nvue": { + "description": "nvue", + "type": "boolean" } }, "additionalProperties": false -- GitLab