Skip to content

Commit

Permalink
feat: support sass
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Apr 20, 2023
1 parent 967a14d commit 43400c6
Show file tree
Hide file tree
Showing 4 changed files with 346 additions and 106 deletions.
4 changes: 3 additions & 1 deletion lib/webpack.h5.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const sveltePreprocess = require('svelte-preprocess')
const { getLoaderMeta } = require('./loader-meta')

function modifyH5WebpackChain(chain) {
Expand All @@ -13,7 +14,8 @@ function modifyH5WebpackChain(chain) {
emitCss: true,
compilerOptions: {
hydratable: true
}
},
preprocess: sveltePreprocess({})
})

chain.plugin('mainPlugin')
Expand Down
4 changes: 3 additions & 1 deletion lib/webpack.mini.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const sveltePreprocess = require('svelte-preprocess')
const { getLoaderMeta } = require('./loader-meta')

function modifyMiniWebpackChain(chain) {
Expand All @@ -10,7 +11,8 @@ function modifyMiniWebpackChain(chain) {
emitCss: true,
compilerOptions: {
hydratable: true
}
},
preprocess: sveltePreprocess({})
})

chain.plugin('miniPlugin')
Expand Down
Loading

0 comments on commit 43400c6

Please sign in to comment.