Skip to content

Commit 7802729

Browse files
jonathantnealForsakenHarmony
authored andcommitted
Support pcss stylesheets (#831)
1 parent 7125fe0 commit 7802729

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/cli/lib/lib/webpack/webpack-base-config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ module.exports = function(env) {
9797
'.tsx',
9898
'.json',
9999
'.less',
100+
'.pcss',
100101
'.scss',
101102
'.sass',
102103
'.styl',
@@ -190,7 +191,7 @@ module.exports = function(env) {
190191
},
191192
{
192193
// User styles
193-
test: /\.(css|less|s[ac]ss|styl)$/,
194+
test: /\.(p?css|less|s[ac]ss|styl)$/,
194195
include: [source('components'), source('routes')],
195196
use: [
196197
isWatch ? 'style-loader' : MiniCssExtractPlugin.loader,
@@ -215,7 +216,7 @@ module.exports = function(env) {
215216
},
216217
{
217218
// External / `node_module` styles
218-
test: /\.(css|less|s[ac]ss|styl)$/,
219+
test: /\.(p?css|less|s[ac]ss|styl)$/,
219220
exclude: [source('components'), source('routes')],
220221
use: [
221222
isWatch ? 'style-loader' : MiniCssExtractPlugin.loader,

0 commit comments

Comments
 (0)