Webpack手写教程: 学习Webpack的最佳资源

const webpack = require('webpack');

const options = require('./webpack.config');

const compiler = webpack(options);

compiler.run((err, stats) => {

// 处理错误和打印统计信息

});

zip
webpack-hand-write-master.zip 预估大小:44个文件
folder
webpack-hand-write-master 文件夹
file
run-loader.js 5KB
folder
docs 文件夹
folder
assets 文件夹
file
loader-pitch-flow.jpg 57KB
file
loader-work-flow.jpg 46KB
file
optimize.md 553B
file
loader.md 7KB
file
loader-context.js 24KB
file
dev-tool.md 1KB
file
package.json 565B
folder
loaders 文件夹
folder
style-loader.js 文件夹
file
b-loader.js 386B
file
babel-loader.js 1022B
file
c-loader.js 378B
file
babel-loader2.js 651B
file
a-loader.js 227B
file
url-loader.js 809B
file
file-loader.js 438B
folder
info 文件夹
file
stats.json 8KB
file
sep.js 279B
file
stats.js 4KB
file
package-lock.json 218KB
folder
dist 文件夹
file
index.html 257B
file
main.js 2.59MB
folder
src 文件夹
file
index.js 150B
file
title.js 58B
folder
assets 文件夹
file
5.jpg 1.94MB
file
add.js 47B
file
arrowFunction.js 92B
file
noParseLoader.js 40B
file
.gitignore 17B
file
webpack.config.js 2KB
folder
public 文件夹
file
index.html 226B
file
README.md 5KB
file
cli.js 499B
folder
webpack 文件夹
file
NormalModule.js 3KB
file
index.js 914B
file
SingleEntryPlugin.js 874B
file
Compilation.js 3KB
file
EntryOptionPlugin.js 459B
file
compiler.js 3KB
file
Parser.js 465B
file
NormalModuleFactory.js 181B
file
NodeEnvironmentPlugin.js 277B
file
Stats.js 208B
file
WebpackOptionsApply.js 215B
zip 文件大小:4.05MB