收藏
回答

kbone-react 模板怎么使用less 语法呢?

kbone-react 模板怎么使用less 语法呢?

我这边安装使用了 less 文件就是失败


{
  "name": "react-kbone",
  "version": "0.0.1",
  "description": "",
  "author": "wechat-miniprogram",
  "keywords": [
    "react",
    "kbone",
    "mp"
  ],
  "scripts": {
    "start": "npm run mp",
    "web": "cross-env NODE_ENV=development webpack-dev-server --progress --config build/webpack.dev.config.js",
    "mp": "rimraf dist/mp/common && cross-env NODE_ENV=development webpack --config build/webpack.mp.config.js --watch --progress",
    "build": "rimraf dist/web && cross-env NODE_ENV=production webpack --config build/webpack.prod.config.js --progress",
    "build:mp": "rimraf dist/mp/common && cross-env NODE_ENV=production webpack --config build/webpack.mp.config.js --progress"
  },
  "dependencies": {
    "react": "^16.9.0",
    "react-dom": "^16.9.0",
    "react-vant": "^2.0.0-alpha.27"
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 8"
  ],
  "devDependencies": {
    "@webpack-cli/serve": "^1.6.1",
    "babel-core": "^6.26.0",
    "babel-loader": "^7.1.2",
    "babel-plugin-transform-runtime": "^6.23.0",
    "babel-preset-env": "^1.7.0",
    "babel-preset-react": "^6.24.1",
    "babel-preset-stage-3": "^6.24.1",
    "cross-env": "^5.0.5",
    "css-loader": "^0.28.11",
    "file-loader": "^1.1.4",
    "html-webpack-plugin": "^4.5.2",
    "less": "^3.9.0",
    "less-loader": "^4.1.0",
    "mini-css-extract-plugin": "^0.5.0",
    "mp-webpack-plugin": "latest",
    "optimize-css-assets-webpack-plugin": "^5.0.8",
    "portfinder": "^1.0.28",
    "rimraf": "^2.7.1",
    "style-loader": "^2.0.0",
    "stylehacks": "^4.0.3",
    "terser-webpack-plugin": "^4.2.3",
    "webpack": "^4.29.6",
    "webpack-cli": "^4.9.2",
    "webpack-dev-server": "^4.7.4",
    "webpack-merge": "^5.8.0"
  },
  "license": "MIT"
}



回答关注问题邀请回答
收藏
登录 后发表内容
问题标签