1.0.2 • Published 5 years ago

@softcripto/webpack v1.0.2

Weekly downloads
3
License
ISC
Repository
bitbucket
Last release
5 years ago

@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