Code Monkey home page Code Monkey logo

hwb-webpack's Introduction

webpack的基本配置

webpack的打包压缩

webpack的es6的使用

webpack的sass-loder的使用

webapck的多入口文件的打包合并

webpack的引入其他的库的拆离打包

webpack 的使用

注意package.json

安装node.js

第一步:npm install 安装所需依赖

第二步:npm start 启动项目

第三步:npm run build (运行的是webpack.production.config.js)打包项目

webpack.production.config.js只是比webpack.config.js少了devServer(热加载)

[参考文档](https://zhuanlan.zhihu.com/p/20397902?refer=FrontendMagazine)

有问题请联系QQ: 1242680583

hwb-webpack's People

Watchers

James Cloos avatar liangqianshun 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.