{"_id":"add-asset-webpack-plugin","_rev":"10-bb23bdc67f5e9db136fa67874cefae2d","name":"add-asset-webpack-plugin","dist-tags":{"latest":"3.1.1"},"versions":{"0.1.0":{"name":"add-asset-webpack-plugin","version":"0.1.0","keywords":["webpack-plugin","webpack","add","generate","create","make","asset","file"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"add-asset-webpack-plugin@0.1.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/add-asset-webpack-plugin#readme","bugs":{"url":"https://github.com/sindresorhus/add-asset-webpack-plugin/issues"},"dist":{"shasum":"2d2b16538b44f5ef0e17d60ee3c688978a6f9d82","tarball":"https://registry.npmjs.org/add-asset-webpack-plugin/-/add-asset-webpack-plugin-0.1.0.tgz","integrity":"sha512-IO9DTcTFdU+0nX3FV9QN4amS8b3MHI2gqIMA9UClo745sNxkWgsccx2HgP6XhV8kUAAZl5u39JktBriwMdHgXQ==","signatures":[{"sig":"MEUCIDdU10xx0AmXMNv5ix21Gu0Bwlgtemec1EBrXc9HvocSAiEAn7EfOoeP9b8ftiWm1W/Vi+hA7L/OaP9P9eDK03bi7B0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"2d2b16538b44f5ef0e17d60ee3c688978a6f9d82","engines":{"node":">=6"},"gitHead":"6225b956a3e8ac070ca6911d39fbe9e8c9c490f9","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/add-asset-webpack-plugin.git","type":"git"},"_npmVersion":"3.10.10","description":"Dynamically add an asset to the webpack graph","directories":{},"_nodeVersion":"6.11.0","devDependencies":{"xo":"*","ava":"*","pify":"^3.0.0","tempy":"^0.2.1","webpack":"^3.10.0"},"_npmOperationalInternal":{"tmp":"tmp/add-asset-webpack-plugin-0.1.0.tgz_1512615367513_0.8551560677587986","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"add-asset-webpack-plugin","version":"1.0.0","keywords":["webpack-plugin","webpack","add","generate","create","make","asset","file"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"add-asset-webpack-plugin@1.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/add-asset-webpack-plugin#readme","bugs":{"url":"https://github.com/sindresorhus/add-asset-webpack-plugin/issues"},"dist":{"shasum":"6f0678ba36f7049b9911b9923ffe87d04f18661e","tarball":"https://registry.npmjs.org/add-asset-webpack-plugin/-/add-asset-webpack-plugin-1.0.0.tgz","fileCount":4,"integrity":"sha512-Pg6UTxMPmVpGobpBTBmTO54aKvZfnY/rm7YvY86BXv4toE8I29ail6kAzsf0GyEMK6MgvGVDxs4IZXPTCUooNw==","signatures":[{"sig":"MEUCIGXYVN5DfRPSGVRjyG1nrHlmKlHynZ/P/b2E3R2L17XYAiEAzgizMzog+SCQzmd/GYWZQgJeMGdRGTh1/cWfS+s6KsE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcuKP5CRA9TVsSAnZWagAA/OkP/jlkuj0nCUOC/Y6QtW2l\nNnjfbPqjyyzdKvmKOsPS8UszDztf2p4LPLtr3UD58c5w2wLvoP3LiznvXMlP\nSlV+ZNJAOvzlpzzjxusL+90KjybCIPssarCJOrdxUrPw8wqJOAP4OcPhpDnj\nF4bU3uoSkn4aHTp2y+GtqsNAzZrH/wfYYclKNcoTPw7FovSTwQKep/ejpPi9\nW0EpCqhYva69Kipnyo7VaSaDF8hXHENQnFOWXhEKHr3DRTAyvq5hdbusYbvs\nDyJ9NZh2UV8nNofIIPdwcMdpGvYopccKsbqSS9AaVqaTMMTWmIKSz3dA0o16\nTPQMeOUM3M6dZQvv2K0GswJninWcWiplNzY3vdv8BB6g96srNype6W/pg97o\nVBjzKPSv4QDR/xHU2+QgbVYBeDGqBLr4Mnp5MGPGFL/DqJFhegyLwI7MDwHS\n0521C+mKZwKTmrh5ugL8W1z9QKeYd0qi5Hkz0P0FQc+tqcWMxDjhPte03Uwz\nDbeeIWsCvodlDbIefM5SF+4BLoDu6ZS4VC6tlRMUermp1H8ZhuWPk2sGxYEL\n6ajKuSxD/wadTiPm+wP9S/qYUFsZnPIOn3Laq6ffAbWkq8AIcQZMxvCSl/uZ\nIx9JuLyRBV7mgvuc5tjis5YousdwqISVgcFCa/G5YLfwkG1C/NVpHR/yEEzc\nwf/7\r\n=cmqI\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"node":">=8"},"gitHead":"b6b39249b266a7794660a539dcd0fc7117393848","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/add-asset-webpack-plugin.git","type":"git"},"_npmVersion":"6.9.0","description":"Dynamically add an asset to the Webpack graph","directories":{},"_nodeVersion":"8.15.0","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.24.0","ava":"^1.4.1","pify":"^4.0.1","tempy":"^0.3.0","webpack":"^4.30.0"},"peerDependencies":{"webpack":">=4"},"_npmOperationalInternal":{"tmp":"tmp/add-asset-webpack-plugin_1.0.0_1555604472784_0.7980723715014619","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"add-asset-webpack-plugin","version":"2.0.0","keywords":["webpack-plugin","webpack","add","generate","create","make","asset","file"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"add-asset-webpack-plugin@2.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/add-asset-webpack-plugin#readme","bugs":{"url":"https://github.com/sindresorhus/add-asset-webpack-plugin/issues"},"dist":{"shasum":"edf009d4a22af57900d5f6ff0b867802b4ec1168","tarball":"https://registry.npmjs.org/add-asset-webpack-plugin/-/add-asset-webpack-plugin-2.0.0.tgz","fileCount":4,"integrity":"sha512-Vx+MuIwT+IvtSZr4amGLjwu3hI8V2uhA4xYR5X5W6z13FRu5kuAOyEY+YLAvywPtCZS8v/JdVUyiwqHHa68Nyw==","signatures":[{"sig":"MEUCIAcQ1TIvsPw2yY949Fzn6UX5gyeSZP7oQAfyovxQd/yeAiEAgGm2akefqq7KasYAM/dh4cTzzHttujHXq+0G3D91Wi8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3991,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfq0QpCRA9TVsSAnZWagAAIuQP/2WIVufo14PLgrU5dr/c\nOBGrwZpwr00p64R6dO/O7m+gcCjE+eSf9parZuLwTlcQxW+Z9LQ7rHacJ2n0\n+dD2fS+EZ2SO6mKqovvy7S6wSlGi3z2NA38RB+YXp1lc8ozoWvOoDhyM/rjb\ndrhbWnIDIuBhwNHnE6FHL9hlnuUL9sR2JBPw6IrlrsIrvFeFs+AwCaFe0pd1\n8N+ZLkBssy2NY5diN3/Qmp5/UmJ9atAUh5PvPPE9lnsBr2qYDP/592xrFHXs\nqWLWEg+ygQ6/UC97na4y/9AAmAeIL5vFKwQ+4bF8TptaIq6CjaQZdbStczuV\nZyf/EgRoM2AalqmestdhSKJQMjMd4iGAXKaDJpWJqVXuxIwJt6m6w6B/Q+mn\nXODnDSQEeLnqzeVuFipPN0yLo0mFRqkfPrHU29sjFNhx4yjMw2FVK7cUJJeq\npgxPMraa/r4n94nd/QRNYnyqNZL9VXsxHte0FSfEEZEwziJQY3NlOA8wIX1d\n/7jseZ4SnQ5+/wPRFYeygODZv9TlJ2NBqqm6mF8/KSSzQKDy9ApSdrGsLulC\nkb5dXMovJZsI5eUg4y5jme3StyIQqahiLhL0ZlXyCh+GyB73kiydQfeVQA3h\nEMLwTHr0hQNcNpRsPEhEtQYZBZ5p3zMtwjuw8N0D5e6kHYSyJs4PcFGZZSKb\nopMz\r\n=BWIi\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"node":">=10.13.0"},"funding":{"url":"https://github.com/sponsors/sindresorhus"},"gitHead":"f53ecf542f96d7d2749945d4389a0a2d02ab079f","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/add-asset-webpack-plugin.git","type":"git"},"_npmVersion":"7.0.8","description":"Dynamically add an asset to the Webpack graph","directories":{},"_nodeVersion":"15.1.0","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.34.2","ava":"^2.4.0","pify":"^5.0.0","tempy":"^1.0.0","webpack":"^5.4.0"},"peerDependencies":{"webpack":">=5"},"_npmOperationalInternal":{"tmp":"tmp/add-asset-webpack-plugin_2.0.0_1605059624672_0.9015442456670621","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"add-asset-webpack-plugin","version":"2.0.1","keywords":["webpack-plugin","webpack","add","generate","create","make","asset","file"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"add-asset-webpack-plugin@2.0.1","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/add-asset-webpack-plugin#readme","bugs":{"url":"https://github.com/sindresorhus/add-asset-webpack-plugin/issues"},"dist":{"shasum":"047acdb7443e5b7ca9af2d32f74ca7b06827269b","tarball":"https://registry.npmjs.org/add-asset-webpack-plugin/-/add-asset-webpack-plugin-2.0.1.tgz","fileCount":4,"integrity":"sha512-Hx9EKnirCUfdh684y1yhx8QOFolpkIG2VRHHgNm8wFy1Cf7P3RGwS678hoN7Y1XvZRPpVXWa+6QnfL/2i0CMCA==","signatures":[{"sig":"MEYCIQCFBo5JjhDcECcxT/y/sefSPe4eBLyXScYTHVIKxZ7kkQIhAK4gVg/nVu6GdkTfFouJlF36kzzH4EdyYHC6mDWV+PyH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3830,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLPZKCRA9TVsSAnZWagAARJQP/1tYN7c+fYqZyJjgXGMw\nFex8yY1OuPVKHplpijdhBL+3oOc7ZSldHgdF/fqzSfNHS5kSNc844c+pyBy2\n3/X1df0R8LqG2s9+rWCJpx+PL9CKhMaaZdwMAY96JYzmK94CBvi+Wjcie+MZ\ng8Rson+trtxIpKxCeqqQ2RmQb96/f7yYNRMITg1zidKZPhsOBVk/wz/gg7tc\nNp/oxg6yVpvPjvYaOqKmBm1KdcUL1/2DeZRuNWwNBnjYiQepCfwhTzztZb2F\ni+EQFWeGkRAm16lSOWfGBk0Qoc5hoOHn/cXFQxhf9opJvA9T9CSIDKLimygT\nowuhKsX7FO4KzYH7f/l/kze34qKNXo7ud/ymTTKveO7udN3afwz0lCUb+vn9\nJN0nL+zIYqEukJLtovPrH4r+fH9FKe67nAwhtl2S3ddRUk8lzSybUah1ddlv\n7u/Aa5yL+jF4bFRnUoChdaDocRSR96JO2kgKGNLGM6hCQHOneztshCuMhxzq\n1UNq30DQ14w8y1P/GRHGL1QTe35RSpkDk1fD9qJKd3mPYNJ0LappcwQnyRil\nbExctIGLje/sBTH6VbLMz2bktz/PrhiwHMfQq9ami5otvI2WF2La/ebz9vMl\nU9ySifvJGTYxT2W1VO9B8N0RKnnIEMvPah5jHlHUqiXDdeDQ8I8rVoRENw0M\nI6+T\r\n=paxv\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"node":">=10.13.0"},"funding":{"url":"https://github.com/sponsors/sindresorhus"},"gitHead":"22568102324806384412d9769cc4a027ba12c91c","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/add-asset-webpack-plugin.git","type":"git"},"_npmVersion":"6.14.10","description":"Dynamically add an asset to the Webpack graph","directories":{},"_nodeVersion":"14.15.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.34.2","ava":"^2.4.0","pify":"^5.0.0","tempy":"^1.0.0","webpack":"^5.4.0"},"peerDependencies":{"webpack":">=5"},"_npmOperationalInternal":{"tmp":"tmp/add-asset-webpack-plugin_2.0.1_1613559369983_0.14170180033508206","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"add-asset-webpack-plugin","version":"3.0.0","keywords":["webpack-plugin","webpack","add","generate","create","make","asset","file"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"add-asset-webpack-plugin@3.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/add-asset-webpack-plugin#readme","bugs":{"url":"https://github.com/sindresorhus/add-asset-webpack-plugin/issues"},"dist":{"shasum":"d72f893071871ce651c308baaed81ff12b857931","tarball":"https://registry.npmjs.org/add-asset-webpack-plugin/-/add-asset-webpack-plugin-3.0.0.tgz","fileCount":4,"integrity":"sha512-mg6nL4E+dNZPQfTc/A4xcOYsIxCN7Cuy9OScZsjI9qOYPiJeFZfsYcdoYlqcNNQEC4w8yNwArhD1Gm+G1iWrNg==","signatures":[{"sig":"MEQCIA2lTGrlOx/9K27es/OoqYp+Im0O65S+hXM9R6obE5rTAiBPcUfdT+9n61VDf8M9qYUu/s87Jm6lpWak3qlmzk9OZQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3908},"type":"module","engines":{"node":">=18"},"exports":"./index.js","funding":{"url":"https://github.com/sponsors/sindresorhus"},"gitHead":"c1599b038a14f844e195dcb23f026c0eb63c97a5","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/add-asset-webpack-plugin.git","type":"git"},"_npmVersion":"10.6.0","description":"Dynamically add an asset to the Webpack graph","directories":{},"sideEffects":false,"_nodeVersion":"18.20.2","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.58.0","ava":"^6.1.2","pify":"^6.1.0","tempy":"^3.1.0","webpack":"^5.91.0"},"peerDependencies":{"webpack":">=5"},"_npmOperationalInternal":{"tmp":"tmp/add-asset-webpack-plugin_3.0.0_1714471064864_0.01928619618882421","host":"s3://npm-registry-packages"}},"3.1.0":{"name":"add-asset-webpack-plugin","version":"3.1.0","keywords":["webpack-plugin","webpack","add","generate","create","make","asset","file"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"add-asset-webpack-plugin@3.1.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/add-asset-webpack-plugin#readme","bugs":{"url":"https://github.com/sindresorhus/add-asset-webpack-plugin/issues"},"dist":{"shasum":"c6922e6d756dc6358869e1d5d8746bd0cb276c2e","tarball":"https://registry.npmjs.org/add-asset-webpack-plugin/-/add-asset-webpack-plugin-3.1.0.tgz","fileCount":5,"integrity":"sha512-OuFVVwRrLVPOn9OgeqsXGoqcZfonKOZJd2iZPxpq4LnYRXB3UwAibNW2eidGOZQV+KoLHmYqnbc0Y2LGOTDFHw==","signatures":[{"sig":"MEUCIQCAP43Cood/AezVu6dKblOpLIWbsfLfpznJTLHZCMu+UQIgcW19VFqNPp11dpzQc+754cR/WnxmXBYjI8CSbu9lpWM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4895},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"7286c63f7e3a35d33848667e121694cb840d9fdb","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/add-asset-webpack-plugin.git","type":"git"},"_npmVersion":"10.9.2","description":"Dynamically add an asset to the Webpack graph","directories":{},"sideEffects":false,"_nodeVersion":"20.19.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.58.0","ava":"^6.1.2","pify":"^6.1.0","tempy":"^3.1.0","webpack":"^5.91.0"},"peerDependencies":{"webpack":">=5"},"_npmOperationalInternal":{"tmp":"tmp/add-asset-webpack-plugin_3.1.0_1757586400188_0.5776646111557151","host":"s3://npm-registry-packages-npm-production"}},"3.1.1":{"name":"add-asset-webpack-plugin","version":"3.1.1","description":"Dynamically add an asset to the Webpack graph","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/add-asset-webpack-plugin.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava"},"keywords":["webpack-plugin","webpack","add","generate","create","make","asset","file"],"devDependencies":{"ava":"^6.1.2","pify":"^6.1.0","tempy":"^3.1.0","webpack":"^5.91.0","xo":"^0.58.0"},"peerDependencies":{"webpack":">=5"},"peerDependenciesMeta":{"webpack":{"optional":true}},"_id":"add-asset-webpack-plugin@3.1.1","gitHead":"38edb0d2742d945a20e9d2b2800037aa89347b9c","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/add-asset-webpack-plugin/issues"},"homepage":"https://github.com/sindresorhus/add-asset-webpack-plugin#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-0WexE8uFq2hkC/rc+zVY8Hf5cKj/UwuBa0GSDKfCiKh6rrw/e7PYDgdxz1syHXIthTRlgt5q2vLvBIWcWtAvIQ==","shasum":"d0f5c96adba70f4a08ee004bffb1ee47f2a7fd44","tarball":"https://registry.npmjs.org/add-asset-webpack-plugin/-/add-asset-webpack-plugin-3.1.1.tgz","fileCount":5,"unpackedSize":4965,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDPU17tTtsgDI/MAdnui2BPVUiziFd4B/MkxGfvnsQTXAIhAL0EpLjNPjElE/umOcAHpHLWsHg421nJBZ8WuPXJ5ovt"}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/add-asset-webpack-plugin_3.1.1_1757749558119_0.36288874566360385"},"_hasShrinkwrap":false}},"time":{"created":"2017-12-07T02:56:08.507Z","modified":"2025-09-13T07:45:58.500Z","0.1.0":"2017-12-07T02:56:08.507Z","1.0.0":"2019-04-18T16:21:12.973Z","2.0.0":"2020-11-11T01:53:44.791Z","2.0.1":"2021-02-17T10:56:10.099Z","3.0.0":"2024-04-30T09:57:44.991Z","3.1.0":"2025-09-11T10:26:40.381Z","3.1.1":"2025-09-13T07:45:58.301Z"},"bugs":{"url":"https://github.com/sindresorhus/add-asset-webpack-plugin/issues"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","homepage":"https://github.com/sindresorhus/add-asset-webpack-plugin#readme","keywords":["webpack-plugin","webpack","add","generate","create","make","asset","file"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/add-asset-webpack-plugin.git"},"description":"Dynamically add an asset to the Webpack graph","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"readme":"# add-asset-webpack-plugin\n\n> Dynamically add an asset to the [Webpack](https://webpack.js.org) graph\n\n## Install\n\n```sh\nnpm install add-asset-webpack-plugin\n```\n\n## Usage\n\n```js\nimport AddAssetPlugin from 'add-asset-webpack-plugin';\n\nexport default {\n\t// …\n\tplugins: [\n\t\tnew AddAssetPlugin('file.js', `\n\t\t\tconsole.log('This is a dynamically created file');\n\t\t`)\n\t]\n};\n```\n\n## API\n\n### AddAssetPlugin(filePath, source)\n\n#### filePath\n\nType: `string`\n\nRelative file path for the asset.\n\n#### source\n\nType: `string | (compilation => string | Promise<string>)`\n\nAsset source or a function that returns the asset source.\n\nIf a function, it will receive the [`compilation` instance](https://webpack.js.org/api/compilation/).\n\n## FAQ\n\n### Can I import the dynamically created files?\n\nNo. This plugin creates assets in the output directory, not importable modules. For virtual modules that can be imported, use [`webpack-virtual-modules`](https://github.com/sysgears/webpack-virtual-modules) instead.\n\n## Related\n\n- [node-env-webpack-plugin](https://github.com/sindresorhus/node-env-webpack-plugin) - Simplified `NODE_ENV` handling\n- [add-module-exports-webpack-plugin](https://github.com/sindresorhus/add-module-exports-webpack-plugin) - Add `module.exports` for Babel and TypeScript compiled code\n","readmeFilename":"readme.md"}