A webpack loader to load resource from the network.
MIT License
This is just for fun.
You can just import from a URL and use it like this:
import Vue from 'https://unpkg.com/vue/dist/vue.js'
new Vue({
el: '#app',
template: '<h1>hello {{ msg }}</h1>',
data: {
msg: 'world'
}
})
yarn add network-loader
In your webpack config:
// webpack.config.js
module.exports = {
entry: './main.js',
module: {
rules: [
{
test: /\.js$/,
loader: 'network-loader',
exclude: [/node_modules/]
}
]
}
}
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
network-loader © EGOIST, Released under the MIT License. Authored and maintained by EGOIST with help from contributors (list).
github.com/egoist · GitHub @EGOIST · Twitter @_egoistlily