# webpack **Repository Path**: llqfront/webpack ## Basic Information - **Project Name**: webpack - **Description**: webpack 使用 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-07-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #安装前准备: * nodejs 下载地址:[nodejs](https://nodejs.org/en/download/) * gitbash 下载地址:[gitbash](https://git-scm.com/downloads) #查看版本 * node -v * git --version #开始安装webpack * npm install webpack -g * npm install webpack-dev-server -g #下载代码 * git clone https://git.oschina.net/llqfront/webpack.git #安装npm 包 * npm install * webpack * webpack-dev-server * 访问:http://localhost:8010/ #webpack.config * 新建 webpack.es6.config.js * 修改package.json ###### 代码 "scripts": { "start": "webpack-dev-server --inline --hot", "test": "echo \"Error: no test specified\" && exit 1", "start_es6": "webpack --config webpack.es6.config.js", "build_es6": "webpack-dev-server --hot --inline --config webpack.es6.config.js" }, * 启服务(另一个配置文件) webpack --config webpack.es6.config.js webpack-dev-server --config webpack.es6.config.js