feat(omi-kbone): support less

This commit is contained in:
dntzhang 2019-11-04 15:42:30 +08:00
parent 6418541354
commit 5654664b87
2 changed files with 12 additions and 3 deletions

View File

@ -9,6 +9,7 @@
"mp"
],
"scripts": {
"mp": "npm run start",
"start": "cross-env NODE_ENV=production webpack --config scripts/webpack.mp.config.js --watch --progress --hide-modules",
"web": "node scripts/start.js",
"build": "PUBLIC_URL=. node scripts/build.js",

View File

@ -75,14 +75,22 @@ module.exports = {
'css-loader'
],
},
{
test: /\.less$/,
use: [
MiniCssExtractPlugin.loader,
'css-loader',
'less-loader'
],
},
{
test: /\.[t|j]sx?$/,
loader: 'babel-loader',
exclude: /node_modules/,
options: {
plugins : [
["transform-react-jsx", { "pragma":"h" }]
]
plugins : [
["transform-react-jsx", { "pragma":"h" }]
]
}
},
{