Skip to content

Commit 6f40cd9

Browse files
author
Chau Tran
committed
fix: fix webpack config for postcss-loader v4.0.1
fix #3
1 parent 13bce41 commit 6f40cd9

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Diff for: src/ng-add/files/webpack.config.js.template

+9-7
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ module.exports = (config) => {
1111
test: /\.<%= cssFlavor %>$/,
1212
loader: 'postcss-loader',
1313
options: {
14-
ident: 'postcss',<% if(cssFlavor !== 'css') {%>
15-
syntax: 'postcss-<%= cssFlavor %>',<% } %>
16-
plugins: () => [
17-
require('postcss-import'),
18-
require('tailwindcss')(tailwindConfig),
19-
require('autoprefixer'),
20-
]
14+
postcssOptions: {
15+
ident: 'postcss',<% if(cssFlavor !== 'css') {%>
16+
syntax: 'postcss-<%= cssFlavor %>',<% } %>
17+
plugins: [
18+
require('postcss-import'),
19+
require('tailwindcss')(tailwindConfig),
20+
require('autoprefixer'),
21+
]
22+
}
2123
}
2224
}
2325
]

0 commit comments

Comments
 (0)