webpack

  • 全局变量
    • ✔expose-loader
    • ✔new webpack.ProvidePlugin
    • externals
  • html配置模板
    • ✔html-webpack-plugin: html模板用到
    • ✔单页模板配置
    • ✔多页模板配置
  • 图片处理
    • file-loader: 没用到,可以打包图片
    • ✔url-loader:打包图片可以设置转换成base64
    • ✔html-withimg-loader: html里面的图片打包
  • css处理
    • ✔style-loader: 加载.css文件
    • ✔css-loader:使用