Skip to content

Commit 2496955

Browse files
committed
Upgrade autoprefixer
1 parent a1be3b8 commit 2496955

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@
1717
"url": "https://github.com/textpattern/textpattern-jquery-ui-theme/issues"
1818
},
1919
"devDependencies": {
20-
"autoprefixer": "9.8.6",
20+
"autoprefixer": "10.2.4",
2121
"clean-webpack-plugin": "3.0.0",
2222
"cross-env": "7.0.3",
2323
"css-loader": "5.0.2",
2424
"fibers": "5.0.0",
2525
"mini-css-extract-plugin": "1.3.7",
26-
"postcss-loader": "3.0.0",
26+
"postcss": "8.2.6",
27+
"postcss-loader": "5.0.0",
2728
"sass": "1.32.7",
2829
"sass-loader": "11.0.1",
2930
"stylelint": "13.10.0",

webpack.config.js

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,31 @@ module.exports = {
1919
test: /\.(scss)$/,
2020
use: [
2121
MiniCssExtractPlugin.loader,
22-
// Translates CSS into CommonJS modules.
23-
{ loader: 'css-loader', options: { importLoaders: 2 } },
24-
// Run postCSS actions.
25-
{ loader: 'postcss-loader', options: { plugins: [require('autoprefixer')] } },
26-
// Compiles Sass to CSS.
22+
{
23+
loader: 'css-loader',
24+
options: {
25+
importLoaders: 2,
26+
},
27+
},
28+
{
29+
loader: 'postcss-loader',
30+
options: {
31+
postcssOptions: {
32+
plugins: [
33+
'autoprefixer',
34+
],
35+
},
36+
},
37+
},
2738
{
2839
loader: 'sass-loader',
2940
options: {
3041
implementation: require('sass'),
3142
sassOptions: {
32-
outputStyle: 'expanded'
33-
}
34-
}
35-
}
43+
outputStyle: 'expanded',
44+
},
45+
},
46+
},
3647
]
3748
},
3849
]

0 commit comments

Comments
 (0)