webpack-config-parts

Parts of Webpack configurations.

Usage no npm install needed!

<script type="module">
  import webpackConfigParts from 'https://cdn.skypack.dev/webpack-config-parts';
</script>

README

webpack-config-parts

code style: prettier Dependency Status DevDependency Status NPM Downloads

Parts of Webpack configurations.

Install

$ npm install webpack-config-parts

Usage

const { setupIO } = require('webpack-config-parts')

Build Options

Environment Variables

Name Description Default Value Example Value
W_PUBLIC_PATH Public path for serving static files <empty string> https://cdn.example.com/
W_FILE_FLAT Enable flat file structure <empty string> true
W_FILE_HASH Enable file hash <empty string> true

Examples

Visit here for a practical example.

Why create this?

I'm tired of writing the same configurations again and again.

I think you should...

Uhh... This package is published for myself, If you don't like it, just fuck off.

License

MIT © m31271n