For questions please post on Stack Overflow and use the 'webpack' tag (http://stackoverflow.com/tags/webpack).
dependabot[bot] on npm_and_yarn
chore(deps-dev): bump terser fr… (compare)
dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
chore(deps-dev): bump jest-cli … (compare)
dependabot[bot] on npm_and_yarn
I am trying to split up my modules across two different webpack configs - a vendor config and an app config. This seems to kinda work, but I am still ending up with vendor libraries in my app js and app css so all of my app files are much larger than they should be. I am using DLLPlugin in my vendor config
new webpack.DllPlugin({
path: helpers.root('wwwroot', 'dist', 'js/[name]-manifest.json'),
name: '[name]_[hash]'
})
and in my dev config I am using the DLLReferencePlugin
new webpack.DllReferencePlugin({
context: __dirname,
manifest: require(helpers.root('wwwroot', 'dist', 'js/vendor-manifest.json'))
}),
What am I missing?
ExtendedAPIPlugin
which is supposed to make a new variable __webpack_hash__
available is not defined when I load & run it.Hi :wave:
the recent upgrade 3.7.1 of webpack-dev-middleware causes the following error. When I downgrade to 3.7.0 everything is fine:
✖ 「wdm」: TypeError: Cannot read property 'tapAsync' of undefined
at compiler.hooks.emit.tap (****/webpack-dev-middleware/lib/fs.js:18:37)
at _next3 (eval at create (****/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:10:1)
at _err3 (eval at create (****/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:25:1)
at callback (****/copy-webpack-plugin/dist/index.js:77:17)
at ****/copy-webpack-plugin/dist/index.js:118:24
at <anonymous>
any ideas?
./node_modules/.bin/webpack --version
Cannot read Component of undefined
.<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.8.6/umd/react.production.min.js"></script>
in my index.html, and that does the job. But i would like to know why webpack doesn't not integrate react (from node_modules) itself in the finalbundle.js
? :O
Hello, community! I have a question about bundling dependency js library (it is not an NPM lib and it was bundled with webpack for browser <script>.. just a .js file) into my new library that I build using typescript.
How to define and inject this .js library into my final bundle?
=n(19)},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return rt}),n.d(t,"b",function(){return we}),n.d(t,"d",function(){return ot});var r=n(3),i=n.n(r),o=n(14),a=n.n(o),l=n(0),s=n.n(l),u=n(15),c=n(4),f=n(5),d=(n(27),n(17)),p=n(18),h=function(e,t){for(var n=
=n(19)},
presented, I don't know why