4.0.1 • Published 4 years ago

null-loader v4.0.1

Weekly downloads
902,075
License
MIT
Repository
github
Last release
4 years ago

npm node deps tests chat size

null-loader

A webpack loader that returns an empty module.

One use for this loader is to silence modules imported by a dependency. Say, for example, your project relies on an ES6 library that imports a polyfill you don't need, so removing it will cause no loss in functionality.

Getting Started

To begin, you'll need to install null-loader:

$ npm install null-loader --save-dev

Then add the loader to your webpack config. For example:

// webpack.config.js
const path = require('path');

module.exports = {
  module: {
    rules: [
      {
        // Test for a polyfill (or any file) and it won't be included in your
        // bundle
        test: path.resolve(__dirname, 'node_modules/library/polyfill.js'),
        use: 'null-loader',
      },
    ],
  },
};

And run webpack via your preferred method.

Contributing

Please take a moment to read our contributing guidelines if you haven't yet done so.

CONTRIBUTING

License

MIT

wti-form-source-code@kova/antd-less@kova/less@asep.setiawan/react-kit@jerryhorak/docusaurus-coregintonic@deriv/traderdowebtempfix-for-version-one-point-one-point-threereact-unity-scripts@dewen_li/gatsby-theme-bodilessecp-frontendpeach-clieatpro-ssrcorifeus-builder-angularlyrahealth-uicorearch3pugworkhzero-webpack-scripts@wownikcompany/frontend-corereact-application-base@futurelearn/webpack-configtealess-helpers@infinitebrahmanuniverse/nolb-nulwebpack-kit@everything-registry/sub-chunk-2354app-noolsnbc-paas-webpacksnbc-paas-webpack-scriptscpaas-webpack-scriptsmember-easy-mobile-v1next-plugin-antd-designsyncano-gatsbyvue-cli-plugin-docgenwebcompilerwpi-react-hmr-ssrwildplatesaguisass-lifter-loaderscot4reacts-webpack-clireapp-packrelient-clistoke-react-scriptsstrapi-helper-plugin-testrsg-altvue-cli-plugin-weexuwfvue-cli-plugin-ktghvue-cli-plugin-vuetifyvue-easy-renderervue-cli-plugin-rishiqingwi-layer-react-express@aws-crypto/integration-browsermhymhydmfe-runtimemobileapi-helper-pluginminiapp-compiler-sharedminiapp-builderloch-nesshelloxyzklmgix-polar-webpackjarbjade-react-loader-examplejitsi-meet-stepupjitsi-fmtechhulixiqiyi_game_wp_climwapi-helper-pluginkoa-vuessr-middlewarehaxe-loaderhyperapp-toolsgulu-bumblekarma-webpack-bundlekhoommimic-webpacklci-core-tile-roilambda-webpacklandrggsgionee-webpack-react-generatorsmyjamnbcllpack-ts-react-apollomadewithlove-karma-configorisonjsopengov-k6-coreplivo-browser-sdkpristine-appnext-antd-lessnext-lessnext-plugin-antdnext-plugin-antd-lessnext-plugin-antdesign-lessnextjs-conceptngl-cling-ruflixnio-packpi-cms-componentsmy-first-jss-app
4.0.1

4 years ago

4.0.0

5 years ago

3.0.0

5 years ago

2.0.0

5 years ago

1.0.0

6 years ago

0.1.1

10 years ago

0.1.0

10 years ago