Skip to content

Commit

Permalink
chore: harmonyOS supports global stylesheets
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud committed Nov 14, 2024
1 parent 47afee6 commit a25a3d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 42 deletions.
5 changes: 2 additions & 3 deletions packages/nutui-taro-demo/config/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const path = require('path')
const injectScss = require('../plugins/inject-scss')

let fileStr = `src/styles/variables.scss`
let themeStr = `src/styles/theme-default.scss`
Expand Down Expand Up @@ -71,7 +70,7 @@ const config = {
},
sourceRoot: 'src',
outputRoot: `dist/${process.env.TARO_ENV === 'h5' ? 'demo' : process.env.TARO_ENV}`,
plugins: [path.resolve(__dirname, '../plugins/inject-scss.js'), ...plugins],
plugins: [...plugins],
compiler: 'webpack5',
alias:
process.env.TARO_ENV === 'rn' || process.env.TARO_ENV === 'jdrn'
Expand Down Expand Up @@ -129,7 +128,7 @@ const config = {
},
},
// 将编译方式设置为使用 Vite 编译
compiler: { type: 'vite', vitePlugins: [injectScss()] },
compiler: { type: 'vite' },
// 【必填】鸿蒙主应用的绝对路径,例如:
projectPath: path.resolve(
process.cwd(),
Expand Down
39 changes: 0 additions & 39 deletions packages/nutui-taro-demo/plugins/inject-scss.js

This file was deleted.

0 comments on commit a25a3d5

Please sign in to comment.