包
1、css-loader
The css-loader interprets @import and url() like import/require() and will resolve them.
日期:2018-03-16 10:35:34,版本:0.28.11
日期:2017-03-13 13:45:04,版本:0.27.31
npm i -D css-loader
1 | var config = { |
2、style-loader
Adds CSS to the DOM by injecting a style tag
日期:2018-03-09 11:40:21,版本:0.20.3
日期:2017-03-28 13:29:00,版本:0.16.11
npm i -D style-loader
1 | var config = { |
3、extract-text-webpack-plugin
Extract text from a bundle, or bundles, into a separate file.(提取样式到一个独立的文件中,而不是以style方式插入到头部)
日期:2017-10-25 17:10:40,版本:3.0.2,不支持 webpack >= 4
日期:2017-03-05 09:02:27,版本:2.1.01
npm i -D extract-text-webpack-plugin
1 | var ExtractTextPlugin = require('extract-text-webpack-plugin'); |
1 | var ExtractTextPlugin = require('extract-text-webpack-plugin'); |
4、vue
日期:2018-03-13 22:14:28,版本:2.5.16
日期:2017-03-27 02:46:27,版本:2.2.61
npm i -S vue
5、vue-loader
Vue.js component loader for Webpack.
日期:2018-03-23 20:18:17,版本:14.2.2
日期:2017-03-29 07:37:41,版本:11.3.41
npm i -D vue-loader
6、vue-style-loader
This is a fork based on style-loader. (大部分情况下不用安装,而作为 vue-loader 的依赖。当用 extract-text-webpack-plugin 提取 vue 中的 css 时,会用到)
日期:2018-03-20 20:04:03,版本:4.1.0
日期:2017-03-28 13:16:56,版本:2.0.51
npm i -D vue-style-loader
1 | var ExtractTextPlugin = require('extract-text-webpack-plugin'); |
7、vue-template-compiler
This package can be used to pre-compile Vue 2.0 templates into render functions to avoid runtime-compilation overhead and CSP restrictions. (作为 vue-loader 的依赖,不独立使用,除非有特别的需求。vue-loader 11.3.4 依赖于它,不安装报错)
日期:2018-03-13 22:14:12,版本:2.5.16
日期:2017-03-27 02:46:02,版本:2.2.61
npm i -D vue-template-compiler
8、vue-hot-reload-api
Hot reload API for Vue components. This is what vue-loader and vueify use under the hood.(作为 vue-loader 的依赖,不独立使用)
日期:2018-02-21 14:33:47,版本:2.3.0
日期:2017-02-26 03:16:23,版本:2.0.111
npm i -D vue-hot-reload-api
9、file-loader
Instructs webpack to emit the required object as file and to return its public URL
日期:2018-03-01 22:55:18,版本:1.1.11
日期:2017-02-25 01:05:55,版本:0.10.11
npm i -D file-loader
10、url-loader
Loads files as base64 encoded URL(内部使用了 file-loader,但是不依赖 file-loader)
日期:2018-03-03 08:14:57,版本:1.0.1
日期:2017-02-24 16:38:51,版本:0.5.81
npm i -D url-loader
1 | var config = { |
11、webpack-merge
webpack-merge provides a merge function that concatenates arrays and merges objects creating a new object.
日期:2018-02-22 21:16:16,版本:4.1.2
日期:2017-03-16 10:58:35,版本:4.1.01
npm i -D webpack-merge
1 | var merge = require('webpack-merge'); |
12、html-webpack-plugin
webpack-merge provides a merge function that concatenates arrays and merges objects creating a new object.
日期:2018-04-03 09:01:49,版本:3.2.0
日期:2017-01-29 13:48:20,版本:2.28.01
npm i -D html-webpack-plugin
1 | var HtmlWebpackPlugin = require('html-webpack-plugin'); |
13、vue-router
vue-router is the official router for Vue.js. It deeply integrates with Vue.js core to make building Single Page Applications with Vue.js a breeze.
日期:2017-10-13 16:24:49,版本:3.0.1
日期:2017-03-29 08:00:05,版本:2.3.11
npm i -S vue-router
1 | import VueRouter from 'vue-router'; |
14、fastclick
解决移动端300ms延迟1
npm i -S fastclick
安装路径
C:\Users\zero\AppData\Roaming\npm\node_modules
参考
1、包仓库