Skip to content

mattlewis92/webpack-date-fns-externals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpack-date-fns-externals

Build Status codecov

A tiny utility to prevent webpack bundling date-fns imports in your library code

Installation

npm install webpack-date-fns-externals --save-dev

Usage

// webpack.config.js
const webpackDateFnsExternals = require('webpack-date-fns-externals');

module.exports = {
  // rest of config here
  externals: [
    webpackDateFnsExternals(),
    {
      'another-external-lib': {
        root: ['anotherExternalLib'],
        commonjs: 'another-external-lib',
        commonjs2: 'another-external-lib',
        amd: 'another-external-lib'
      }
    }
  ]
};

License

MIT

About

A tiny utility to prevent webpack bundling date-fns imports in your library code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published