feat(omi-kbone): support less
This commit is contained in:
parent
6418541354
commit
5654664b87
|
@ -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",
|
||||
|
|
|
@ -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" }]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue