From bcdccf02db54700623d5262df103577bf77bcaf5 Mon Sep 17 00:00:00 2001 From: harrywan Date: Tue, 8 Jun 2021 14:49:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81css=20modules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/zh/guide/css.md | 14 +++ .../src/plugins/commands/webpackConfig/css.js | 93 +++++++++++-------- packages/fes-template/.fes.js | 3 + packages/fes-template/src/pages/index.vue | 21 ++++- 4 files changed, 89 insertions(+), 42 deletions(-) diff --git a/docs/zh/guide/css.md b/docs/zh/guide/css.md index e5968698..0cfaed03 100644 --- a/docs/zh/guide/css.md +++ b/docs/zh/guide/css.md @@ -23,5 +23,19 @@ Fes.js 中约定 `src/global.css` 为全局样式,如果存在此文件,会 ``` +## CSS Modules +支持 `Vue` 的 [CSS Modules](https://vue-loader.vuejs.org/zh/guide/css-modules.html#%E7%94%A8%E6%B3%95) 用法,可以直接使用: +```vue +