easy-team / egg-react-webpack-boilerplate

Egg React Server Side Render(SSR) / Client Sider Render(CSR)
https://easyjs.cn/egg-react
MIT License
671 stars 93 forks source link

egg-react-webpack-boilerplate 按照配置流程走下去,发现serviceworker配置不起作用 #27

Closed z791483920 closed 5 years ago

z791483920 commented 6 years ago

{ "name": "egg-react-webpack-boilerplate", "version": "4.3.1", "description": "基于 easywebpack-react 和 egg-view-react-ssr 插件服务端渲染工程骨架项目", "scripts": { "clean": "easy clean", "build": "EGG_SERVER_ENV=prod NODE_ENV=production easy build", "debug": "egg-bin debug", "dev": "egg-bin dev", "start": "EGG_SERVER_ENV=prod NODE_ENV=production egg-scripts start", "lint": "eslint .", "fix": "eslint --fix .", "ii": "npm install --registry https://registry.npm.taobao.org", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s" }, "dependencies": { "antd": "^3.0.3", "egg": "^2.1.0", "egg-cors": "^2.0.0", "egg-logger": "^1.5.0", "egg-scripts": "^2.8.1", "egg-serviceworker": "^1.0.0", "egg-validate": "^1.0.0", "egg-view-react-ssr": "^2.2.6", "extend": "~3.0.0", "history": "^4.7.2", "lodash": "^4.17.4", "mockjs": "^1.0.1-beta3", "moment": "^2.17.1", "react": "^16.0.0", "react-dom": "^16.0.0", "react-redux": "^5.0.6", "react-router": "^4.2.0", "react-router-config": "^1.0.0-beta.4", "react-router-dom": "^4.2.2", "react-router-redux": "^4.0.8", "redux": "^3.7.2", "service-worker-register": "^1.2.6" }, "devDependencies": { "conventional-changelog-cli": "^1.3.5", "easywebpack-cli": "^4.0.0", "easywebpack-react": "^4.3.0", "egg-bin": "^4.5.0", "egg-webpack": "^4.4.1", "egg-webpack-react": "^2.0.2", "eslint-config-egg": "^5.1.1", "eslint-plugin-react": "^7.1.0", "imagemin-webpack-plugin": "^2.3.0", "ip": "^1.1.5" }, "engines": { "node": ">=8.0.0" }, "ci": { "version": "8, 9" }, "repository": { "type": "git", "url": "git+https://github.com/easy-team/egg-react-webpack-boilerplate.git" }, "author": "hubcarl@126.com", "license": "MIT", "homepage": "https://github.com/easy-team/egg-react-webpack-boilerplate" }

hubcarl commented 6 years ago

@z791483920 开发模式是不生效的,发布模式看看

z791483920 commented 6 years ago

已经打包 而且用的是localhost

hubcarl commented 5 years ago

验证是可以的:https://www.yuque.com/easy-team/easywebpack/pwd

see:https://github.com/easy-team/egg-react-webpack-boilerplate/commit/11536aa006caa0c7b43b6e7a32ee64dc721f2eb9