mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Inject lazy dependencies (#639)
Still TODO Find a nice way to expose WebampLazy as: ```JavaScript import WebampLazy from 'webamp/lazy'; ```
This commit is contained in:
parent
6591c98b40
commit
1bdb7d6345
9 changed files with 324 additions and 273 deletions
|
|
@ -7,7 +7,8 @@ module.exports = {
|
|||
node: {
|
||||
// Consider suggesting jsmediatags use: https://github.com/feross/is-buffer
|
||||
// Cuts 22k
|
||||
Buffer: false
|
||||
Buffer: false,
|
||||
fs: "empty"
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
|
|
@ -64,7 +65,9 @@ module.exports = {
|
|||
],
|
||||
entry: {
|
||||
bundle: "./js/webamp.js",
|
||||
"bundle.min": "./js/webamp.js"
|
||||
"bundle.min": "./js/webamp.js",
|
||||
"lazy-bundle": "./js/webampLazy.js",
|
||||
"lazy-bundle.min": "./js/webampLazy.js"
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, "../built"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue