UNPKG

webpack

Version:

Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jade, coffee, css, less, ... and your custom stuff.

13 lines 406 B
var webpack = require("../../"); module.exports = { entry: ["../../hot/dev-server", "./index.js"], output: { filename: "bundle.js", hotUpdateChunkFilename: "[id].[hash].bundle-update.js", hashDigestLength: 4 }, plugins: [ new webpack.HotModuleReplacementPlugin() ], recordsPath: __dirname + "/records.json" // this is not required for the webpack-dev-server, but when compiled. };