L
L
LoveCode &Coffe2019-11-14 22:35:38
webpack
LoveCode &Coffe, 2019-11-14 22:35:38

How to run webpack dev server with different settings?

I have music playing in my project and transitions between screens are in the form of gifs with pictures for 2-3 seconds. Is it possible to create two modes of devserver operation? Ie one mode which will ignore certain functions and styles? If so, where can I read about it. For example, I want this:
1 mod standard

//another script 

const  preloader = ( ) => {
   // code 
}
preloader()

1 launch mode in which the entire application starts without changes.
And the second launch mode in which the preloader function is not executed. And it is desirable to do this with styles (sass)
<code lang="javascript">

//another script 

const  preloader = ( ) => {
   // code 
}
//preloader()
</code>

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