From 881199a2575531a3a5417131eb9fa06c11aad8b9 Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Wed, 16 May 2018 22:33:44 +0800 Subject: [PATCH] feat: support style lang postcss (close: #461) --- lib/webpack/createBaseConfig.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/webpack/createBaseConfig.js b/lib/webpack/createBaseConfig.js index 3a43c95d35..02a664494b 100644 --- a/lib/webpack/createBaseConfig.js +++ b/lib/webpack/createBaseConfig.js @@ -212,6 +212,7 @@ module.exports = function createBaseConfig ({ } createCSSRule('css', /\.css$/) + createCSSRule('postcss', /\.p(ost)?css$/) createCSSRule('scss', /\.scss$/, 'sass-loader', siteConfig.scss) createCSSRule('sass', /\.sass$/, 'sass-loader', Object.assign({ indentedSyntax: true }, siteConfig.sass)) createCSSRule('less', /\.less$/, 'less-loader', siteConfig.less)