
webpack
最亮的心
前端开发,c++开发,易语言开发
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
使用webpack搭建一个react项目
npm initpackage.json文件配置{ "name": "serach-bar", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "dev": "webpack-dev-server --progress --profile --colors --hot",原创 2017-07-19 16:17:26 · 1030 阅读 · 0 评论 -
heroku 自动部署create-react-app项目
本文介绍heroku服务器上部署react项目,会自动编译,打包源码npm install -g create-react-appcreate-react-app my-appcd my-appgit initheroku create -b https://github.com/mars/create-react-app-buildpack.gitgit add .git commit转载 2017-08-18 20:49:51 · 775 阅读 · 0 评论 -
使用create-react-app自动构建react项目
npm install -g create-react-appcreate-react-app my-appcd my-app/npm start转载 2017-07-27 15:55:54 · 323 阅读 · 0 评论 -
dva-cli域名和端口号配置
文档地址:https://github.com/sorrycc/roadhog/blob/1.x/README.md 可环境变量临时配置一些参数,包括:PORT, 端口号,默认 8000 HOST, 默认 localhost HTTPS,是否开启 https,默认关闭 BROWSER,设为 none 时不自动打开浏览器 CLEAR_CONSOLE,设为 none 时清屏# ...原创 2018-07-31 10:46:37 · 1971 阅读 · 0 评论 -
怎么提高webpack构建速度
— 待完成原创 2018-11-09 14:45:27 · 594 阅读 · 0 评论 -
nginx 配置 react项目,首页不是index.html
nginx 配置 react项目,首页不是index.html在 react 项目开发时, 一般有 hashHistory 和 browserHistory 的方式, 在项目打包出来之后,需要部署到服务器上面,碍于实际需求,我们的首页很有可能不是index.html , 于是在网上找了不少资料, 才配置成功这么一套部署方式, 作为参考server { listen 801...原创 2019-01-15 17:00:40 · 2052 阅读 · 0 评论 -
create-react-app使用dllplugin抽取antd作为公共模块
首先说说,为什么要使用dllplugin?在项目开发中,我们会遇到很多的依赖,体积不小,而且他们都是公共模块,基本上不会有变动,所以考虑是不是可以把这部分公共的模块抽取出来,作为静态的资源,不需要每次都打包这块虽然有CommonsChunkPlugin插件可以抽取公共模块,但是有如下缺点每次打包都会重新构建公共模块只要其中的模块有微笑的变动,打包出来的公共文件就不一样,简单说,换台机器...原创 2019-04-30 10:58:58 · 3290 阅读 · 0 评论