https://github.com/rincedd/const-loader
Webpack const loader
https://github.com/rincedd/const-loader
webpack webpack-loader webpack2
Last synced: 4 months ago
JSON representation
Webpack const loader
- Host: GitHub
- URL: https://github.com/rincedd/const-loader
- Owner: rincedd
- License: mit
- Created: 2017-03-09T16:26:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-11T10:58:13.000Z (over 9 years ago)
- Last Synced: 2026-02-25T03:14:25.737Z (4 months ago)
- Topics: webpack, webpack-loader, webpack2
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# const-loader
A webpack loader that ignores the requested resource contents and returns a const value instead.
[](https://travis-ci.org/rincedd/const-loader)
## Usage
```js
const thing = require('const-loader?val=hello!some-module');
console.log(thing); // => 'hello'
```