B
B
be_a_man2018-06-10 21:27:52
webpack
be_a_man, 2018-06-10 21:27:52

Is this possible in Webpack?

Now I'm using Gulp to build.
I have a .js file with commonly used functions

function scrolltoid(){...}
function scrollbarwidth(){...}
// .... и т.д.

I import it with gulp-file-include in the main file in every project.
I compress the final js using gulp-uglify, if the function is not used in the project, it does not get into production.
Question. Is it possible to do this in webpack or do I need to manually import only the functions I need?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question