Skip to content

Commit 43400c6

Browse files
committed
feat: support sass
1 parent 967a14d commit 43400c6

File tree

4 files changed

+346
-106
lines changed

4 files changed

+346
-106
lines changed

lib/webpack.h5.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const sveltePreprocess = require('svelte-preprocess')
12
const { getLoaderMeta } = require('./loader-meta')
23

34
function modifyH5WebpackChain(chain) {
@@ -13,7 +14,8 @@ function modifyH5WebpackChain(chain) {
1314
emitCss: true,
1415
compilerOptions: {
1516
hydratable: true
16-
}
17+
},
18+
preprocess: sveltePreprocess({})
1719
})
1820

1921
chain.plugin('mainPlugin')

lib/webpack.mini.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const sveltePreprocess = require('svelte-preprocess')
12
const { getLoaderMeta } = require('./loader-meta')
23

34
function modifyMiniWebpackChain(chain) {
@@ -10,7 +11,8 @@ function modifyMiniWebpackChain(chain) {
1011
emitCss: true,
1112
compilerOptions: {
1213
hydratable: true
13-
}
14+
},
15+
preprocess: sveltePreprocess({})
1416
})
1517

1618
chain.plugin('miniPlugin')

0 commit comments

Comments
 (0)