Skip to content

Commit

Permalink
fix: disable autoprefixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Nov 7, 2024
1 parent f92f0dd commit c8ff21f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
14 changes: 14 additions & 0 deletions packages/neuron-ui/config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,19 @@ module.exports = function override(config) {
crypto: false,
buffer: false,
}
/* disable autoprefixer */
webpackConfig.module.rules
.find(r => r.oneOf)
.oneOf.forEach(rule => {
if (rule.use) {
rule.use.forEach(loader => {
if (loader.options && loader.options.postcssOptions) {
loader.options.postcssOptions.plugins = loader.options.postcssOptions.plugins.filter(
plugin => !plugin.toString().includes('autoprefixer')
)
}
})
}
})
return webpackConfig
}
3 changes: 0 additions & 3 deletions packages/neuron-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@
"jest": {
"displayName": "UI Tests"
},
"browserslist": [
"last 2 chrome versions"
],
"dependencies": {
"@ckb-lumos/lumos": "0.23.0",
"@ckb-lumos/bi": "0.23.0",
Expand Down

1 comment on commit c8ff21f

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 11716335101

Please sign in to comment.