npm.io
1.0.2 • Published 7 years ago

@softcripto/webpack

Licence
ISC
Version
1.0.2
Deps
9
Size
7 kB
Vulns
6
Weekly
0

@softcripto/webpack

Reusable snippets for webpack 4.x

Install

npm i @softcripto/webpack --save

Usage

Runs on port 8080 and writes build to memory. http://localhost:8080

const {WebpackDevConfig} = require("@softcripto/webpack");
const webpack = WebpackDevConfig(path.resolve(__dirname, "path/to/build"));
Run in different port
const {WebpackDevConfig} = require("@softcripto/webpack");
const webpack = WebpackDevConfig(path.resolve(__dirname, "path/to/build"), 9000);
Write build to disk
const {WebpackDevConfig} = require("@softcripto/webpack");
const webpack = WebpackDevConfig(path.resolve(__dirname, "path/to/build"), 9000, true);

Passing third argument as true webpack dev server writes build to disk instead of memory

License

MIT

Keywords