For questions please post on Stack Overflow and use the 'webpack' tag (http://stackoverflow.com/tags/webpack).
sokra on master
5.15.0 (compare)
sokra on v5.15.0
sokra on master
Add test Fix failing test Linting and 6 more (compare)
sokra on master
remove travis, add azure for th… (compare)
sokra on master
offer getResolve to externals … Merge pull request #12429 from … (compare)
sokra on resolve-in-externals
externals
option to be very lacking as it merely creates a wrapper around globally defined variables and provides no mechanism to actually include external libraries from a CDN. Thus, when the global variable is not defined it throws an error.
dist
folder doesn't mean you should. Doing so is often discouraged because it creates a client-side caching issue. I.e. the browser caches the page and it's assets separately. However, if the page has not been modified, the browser may not check if the assets have been. If you want to continue using static pages.. then I would recommend making your html files your Webpack entrypoints and using the html-loader in combination with the extract-loader. Encore doesn't support processing of HTML files so you would have tell it to load the additional loaders required to do so.
styles.css
within my index.js
but i'm still nto seeing the styles being applied to my custom class. however if i change the style of something like body
then the style is applied.
Entrypoint undefined = index.html
entry: ["react-hot-loader/patch", `${SRC_DIR}/index.js`],
undefined
?
module.exports = [
{
...webpackConfig,
...resolveConfig,
...{
entry: customEntry,
plugins: enhancedPlugin,
output: customOutput
},
externals
},
{
...webpackConfig,
...resolveConfig,
...{
entry: customEntry,
plugins: enhancedPlugin,
module: { ...webpackModule, ...{ rules: enhancedRules } }
}
}
];
I actually want one normal bundling for all files and one special library bundling for one specific file. Now things are working in my favor. (It's not perfect) But I want the order to be specified.
compiler.run(callback)
code will run it in parellel?
I'm using css-loader
to import CSS files while also doing css-in-js using bs-css
after the css-loader
import has been loaded.
The problem - it seems like the css order between the two files is not deterministic. Sometimes one loads ahead, other times it's the other. Are there any ways to control where styles will be loaded onto the page?