E
E
Evgeny2018-12-19 16:07:48
webpack
Evgeny, 2018-12-19 16:07:48

Setting import from window to webpack?

The site connects the Modernizr library directly through the script tag, below it connects a bundle assembled from many files and libs. I use webpack to build.
Problem when accessing the Modernizr library.
Is it possible to somehow make it clear to webpack that this variable (Modernizr) is taken directly from window.
I am compiling the webpack from scratch, because the contractors handed over the sources but not the build scripts, and now I need to tweak the scripts.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belyaev, 2018-12-19
@bingo347

https://webpack.js.org/configuration/externals/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question