UNPKG

multi_page_webpack_react_app

Version:

基于webpack4配置的多页面react项目、开箱即用的脚手架。默认配置为react+less,可根据需求自行修改(vue、jq,sass、stylus等),也可自行修改为单页面应用。

60 lines (59 loc) 2.14 kB
{ "name": "multi_page_webpack_react_app", "version": "1.0.2", "main": "index.js", "author": "dicky_lin", "keywords":["react","多页面","脚手架","vue","开箱即用","无需配置"], "license": "MIT", "scripts": { "build": "yarn lint-fix && cross-env NODE_ENV=production webpack --config build/webpack.prod.js", "start": "yarn lint-fix && cross-env NODE_ENV=development webpack-dev-server --config build/webpack.dev.js", "dll": "webpack --config build/webpack.dll.js", "lint": "eslint --ext .js --ext .jsx ./src/ ./build/ ./postcss.config.js", "lint-fix": "eslint --fix --ext .js --ext .jsx ./src/ ./build/ ./postcss.config.js " }, "dependencies": { "add-asset-html-webpack-plugin": "^3.1.3", "autoprefixer": "^9.7.6", "clean-webpack-plugin": "^3.0.0", "cssnano": "^4.1.10", "friendly-errors-webpack-plugin": "^1.7.0", "glob": "^7.1.6", "html-webpack-plugin": "^4.2.0", "lib-flexible": "^0.3.2", "mini-css-extract-plugin": "^0.9.0", "moment": "^2.24.0", "optimize-css-assets-webpack-plugin": "^5.0.3", "react": "^16.13.1", "react-dom": "^16.13.1", "webpack": "^4.43.0", "webpack-merge": "^4.2.2" }, "devDependencies": { "@babel/core": "^7.9.0", "@babel/plugin-transform-runtime": "^7.9.0", "@babel/preset-env": "^7.9.5", "@babel/preset-react": "^7.9.4", "@babel/runtime": "^7.9.2", "babel-eslint": "^10.1.0", "babel-loader": "^8.1.0", "cross-env": "^7.0.2", "css-loader": "^3.5.2", "eslint": "^6.8.0", "eslint-config-airbnb": "^18.1.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.20.2", "eslint-plugin-jsx-a11y": "^6.2.3", "eslint-plugin-react": "^7.19.0", "eslint-plugin-react-hooks": "^3.0.0", "less": "^3.11.1", "less-loader": "^5.0.0", "postcss-loader": "^3.0.0", "px2rem-loader": "^0.1.9", "style-loader": "^1.1.4", "url-loader": "^4.1.0", "webpack-bundle-analyzer": "^3.7.0", "webpack-cli": "^3.3.11", "webpack-dev-server": "^3.10.3" } }