webpack-contrib / Null Loader
Licence: mit
[DEPRECATED] A loader that returns an empty module (can still be used for webpack 4).
Stars: ✭ 142
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Null Loader
Vue Md Loader
✨ Markdown files to ALIVE Vue components.
Stars: ✭ 78 (-45.07%)
Mutual labels: webpack-loader
Webpack Core Usage
webpack2完整系列课程,欢迎阅读。同时欢迎移步我的react全家桶文章全集: https://github.com/liangklfangl/react-article-bucket
Stars: ✭ 94 (-33.8%)
Mutual labels: webpack-loader
Sass Vars Loader
Use Sass variables defined in Webpack config or in external Javascript or JSON files
Stars: ✭ 112 (-21.13%)
Mutual labels: webpack-loader
Css Modules Flow Types
Creates flow type definitions from CSS Modules files using Webpack loader or CLI 👾
Stars: ✭ 92 (-35.21%)
Mutual labels: webpack-loader
Vue Svg Inline Loader
Webpack loader used for inline replacement of SVG images with actual content of SVG files in Vue projects.
Stars: ✭ 105 (-26.06%)
Mutual labels: webpack-loader
Svg Fill Loader
DEPRECATED, use https://github.com/kisenka/svg-mixer/tree/master/packages/svg-transform-loader instead
Stars: ✭ 74 (-47.89%)
Mutual labels: webpack-loader
Webpack Conditional Loader
C conditionals directive for JavaScript
Stars: ✭ 93 (-34.51%)
Mutual labels: webpack-loader
Vue Theme Loader
A webpack loader for supporting multi-site theming with Vue.js
Stars: ✭ 109 (-23.24%)
Mutual labels: webpack-loader
Graphql Import Loader
Webpack loader for `graphql-import`
Stars: ✭ 84 (-40.85%)
Mutual labels: webpack-loader
Worker Loader
A webpack loader that registers a script as a Web Worker
Stars: ✭ 1,284 (+804.23%)
Mutual labels: webpack-loader
Webpack Component Loader
📦 A webpack loader to componentify CSS/JS/HTML without framework
Stars: ✭ 105 (-26.06%)
Mutual labels: webpack-loader
Url Loader
A loader for webpack which transforms files into base64 URIs
Stars: ✭ 1,361 (+858.45%)
Mutual labels: webpack-loader
Svg Sprite Loader
Webpack loader for creating SVG sprites.
Stars: ✭ 1,822 (+1183.1%)
Mutual labels: webpack-loader
Webpack Tools
☕️Just a simple webpack sample project.
Stars: ✭ 106 (-25.35%)
Mutual labels: webpack-loader
DEPREACTED
https://webpack.js.org/configuration/resolve/#resolvealias. Setting resolve.alias.package
to false
will tell [email protected] to ignore a module.
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.
License
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].