Skip to content

Commit

Permalink
fix(webpack-runner): H5 端 postcss 插件 bug 修复
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Nov 22, 2018
1 parent 675247f commit 6793ce2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/taro-webpack-runner/src/config/postcss.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ const defaultPxtransformOption: {
}
}
const defaultCssModulesOption = {
enable: true,
config: {}
enable: false,
config: {
generateScopedName: '[name]__[local]___[hash:base64:5]'
}
}
const defaultConstparseOption = {
constants: [{
Expand Down Expand Up @@ -65,6 +67,7 @@ export const getPostcssPlugins = function ({
}

if (pxtransformOption.enable) {
defaultPxtransformOption.platform = defaultPxtransformOption.config.platform
plugins.push(pxtransform(defaultPxtransformOption))
}

Expand Down

0 comments on commit 6793ce2

Please sign in to comment.