https-loader
v1.0.3
Published
a webpack loader for loading http(s) resources
Downloads
20
Maintainers
Readme
https-loader
a webpack loader for loading http(s) resources
Getting Started
npm install --save-dev https-loader
Usage
use as prefix to the require statement.
// demo.http
https://xxx.yyy.zzz/.../demo.min.js
// other.js
const demo = require('https-loader!./demo.http');
use as preconfigured rule
// webpack.config.js module.exports = { entry: './index.js', output: { /* ... */ }, module: { rules: [ { test: /\.https?$/, use: 'https-loader', }, ], }, };
const demo = require('./demo.http');