Skip to content

Commit

Permalink
fix(webpack): Fix typo so that less-loader gets used for .less files
Browse files Browse the repository at this point in the history
  • Loading branch information
wms committed Sep 13, 2017
1 parent e10872e commit da7cadf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions webpack/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ export const buildConfig = (appName: string, options = {}) => {
plugins: [
['import', {
'libraryName': 'antd',
'libraryDirectory': 'lib',
'style': 'css'
'style': true
}]
]
}
Expand All @@ -113,7 +112,7 @@ export const buildConfig = (appName: string, options = {}) => {
use: isProd ? styles.extract([
'css-loader',
'less-loader'
]) : ['style-loader', 'css-loader', 'css-loader']
]) : ['style-loader', 'css-loader', 'less-loader']
}, {
test: /\.inline\.less$/,
loader: StyleExtHtmlWebpackPlugin.inline('less-loader')
Expand Down

0 comments on commit da7cadf

Please sign in to comment.