@theopenweb/webpack-helpers

1.5.1 • Public • Published

Description

Collection of Webpack helper functions.

Usage

npm install @theopenweb/webpack-helpers

Each function can be found in the source code. Only the main functions are found below:

const WebpackHelpers = require('webpack-helpers')

// Create basic/common config
module.exports = WebpackHelpers.Recipes.common(__dirname)

// Create basic/common rules
const rules = WebpackHelpers.Rules.common()

Help

Create config:

// webpack.config.js
const WebpackHelpers = require('webpack-helpers')
module.exports = WebpackHelpers.Recipes.common(__dirname)

Production build script:

{
  "scripts": {
    "build-production": "cross-env NODE_ENV=production webpack -p"
  }
}

Development build script:

{
  "scripts": {
    "build-development": "cross-env NODE_ENV=development webpack"
  }
}

Test

Testing is done using npm run test. Only basic testing is done now. Please feel free to request improved testing.

Feedback

Feel free to contact about feedback. If you have any helpers you would like to add, please get in contact.

Install

npm i @theopenweb/webpack-helpers

DownloadsWeekly Downloads

3

Version

1.5.1

License

none

Unpacked Size

20.9 kB

Total Files

7

Last publish

Collaborators

  • theopenweb_jp