modernizr-loader icon indicating copy to clipboard operation
modernizr-loader copied to clipboard

specific chunk

Open gregorskii opened this issue 7 years ago • 0 comments

Hi,

I have a requirement from a front-end dev to place the modernizr package in the head of our application. This is due to the fact that the view will get a flicker if the modernizr javascript loads AFTER CSS classes that use modernizr classes.

How would one go about making the modernizr builder an entry? Could it be chunked on the output?

I would need the custom modernizr build to be chunked, but the resulting output being a global file that can be referenced within the components that use the Modernizr JS.

Thoughts... does this make sense and is possible?

Thanks!

gregorskii avatar Oct 12 '17 01:10 gregorskii