Skip to content

Commit 7f26332

Browse files
fix: configure PostCssAutoprefixerPlugin to not remove vendor prefixes (#647)
1 parent 3c80898 commit 7f26332

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

config/webpack.dev-stage.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ module.exports = merge(commonConfig, {
8383
options: {
8484
postcssOptions: {
8585
plugins: [
86-
PostCssAutoprefixerPlugin(),
86+
PostCssAutoprefixerPlugin({
87+
remove: false, // Prevents removing vendor prefixes
88+
}),
8789
PostCssRTLCSS(),
8890
PostCssCustomMediaCSS(),
8991
],

config/webpack.dev.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ function getStyleUseConfig() {
4747
options: {
4848
postcssOptions: {
4949
plugins: [
50-
PostCssAutoprefixerPlugin(),
50+
PostCssAutoprefixerPlugin({
51+
remove: false, // Prevents removing vendor prefixes
52+
}),
5153
PostCssRTLCSS(),
5254
PostCssCustomMediaCSS(),
5355
],

config/webpack.prod.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ module.exports = merge(commonConfig, {
112112
options: {
113113
postcssOptions: {
114114
plugins: [
115-
PostCssAutoprefixerPlugin(),
115+
PostCssAutoprefixerPlugin({
116+
remove: false, // Prevents removing vendor prefixes
117+
}),
116118
PostCssRTLCSS(),
117119
PostCssCustomMediaCSS(),
118120
CssNano(),

0 commit comments

Comments
 (0)