Answer the question
In order to leave comments, you need to log in
How to determine the current entry point?
There are several entry points in a Webpack project:
entry: {
entry1: './src/entry1.ts',
entry2: './src/entry2.ts',
entry3: './src/entry3.ts',
},
function helper () {
// ... code
if (ENTRY_NAME === 'entry3') { // <- Вот как проверить что функция обрабатывается в контексте entry3?
// ... code
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question