webpack-dev-server
摘要:【webpack-dev-server】 1、webpack-dev-server是一个好用到爆的工具,可以让你1秒搭建起自己的开发服务器。 webpack-dev-server生成的包并没有放在你的真实目录中,而是放在了内存中. 2、webpack-dev-server默认会以当前目录为基本目录,
阅读全文
response.sendfile() fails with Error: Forbidden
摘要:【response.sendfile() fails with Error: Forbidden】 参考:https://github.com/expressjs/express/issues/1465
阅读全文
Manifest File
摘要:【Manifest File】 on every build, webpack generates some webpack runtime code, which helps webpack do its job. When there is a single bundle, the runtim
阅读全文
CommonsChunkPlugin
摘要:【CommonsChunkPlugin】 The CommonsChunkPlugin is an opt-in feature that creates a separate file (known as a chunk), consisting of common modules shared
阅读全文
webpack-manifest-plugin
摘要:【webpack-manifest-plugin】 Webpack plugin for generating an asset manifest. This will generate a manifest.json file in your root output directory with
阅读全文
webpack config
摘要:【webpack config】 1、entry Simple rule: one entry point per HTML page. SPA: one entry point, MPA: multiple entry points. 2、output.filename Specifies the
阅读全文
Webpack Getting Started
摘要:【Webpack Getting Started】 Make sure you have a fresh version of Node.js installed. If you are using npm scripts in your project, npm will try to look
阅读全文
Webpack Plugin
摘要:【Webpack Plugin】 Since Loaders only execute transforms on a per-file basis, plugins are most commonly used (but not limited to) performing actions and
阅读全文
Webpack
摘要:【Webpack】 1、Split app and vendor code To split your app into 2 files, say app.js and vendor.js, you can require the vendor files in vendor.js. Then pa
阅读全文
Webpack Loaders
摘要:【Webpack Loaders】 1、Query parameters Loader can be passed query parameters via a query string (just like in the web). The query string is appended to
阅读全文