GithubHelp home page GithubHelp logo

roadhogwebpack4's Introduction

roadhogWebpack4

使用webpack4来代替roadhong,构建ant-pro项目,可以大幅度提高速度

接入方式

  1. 将package.json中devDependencies中的依赖添加到自己的项目中,并删除项目中的roadhog依赖
  2. 运行npm install 推荐使用(cnpm install速度更快,如果不知道自行百度cnpm)
  3. 将.babelrc(babel配置)、.eslintrc(eslint配置)、.stylelintrc(stylelint配置)复制到项目根目录
  4. 将config.dll.js(打包第三方依赖生成dll,不明白的自行去百度)、webpack.config.development.js(开发环境配置)、webpack.config.production.js(生产环境配置)复制到项目根目录
  5. 运行buildDll 命令生成dll
  6. 开发时运行start:local会启动webpack-dev-server 、开发环境打包运行webpack-build-development、生产环境打包运行webpack-build-production

roadhogwebpack4's People

Contributors

sunny920406 avatar

Watchers

roy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.