E
E
ettaluni2021-06-30 18:32:32
webpack
ettaluni, 2021-06-30 18:32:32

How to build an obfuscated js file?

Good day! There is the following folder structure.

./--
  |--node_modules
  |--src
  |	|--components
  |	|		|--App.html
  |	|		|--App.js
  |	|		|--App.vue
  |	|--index.js
  |
  |--out.js
  |--package.json
  |--webpack.config.js

This miracle is somehow collected in a single out.js file, which is also obfuscated. Vue.js I know poorly was able to figure it out and make changes. But I have never used webpack at all. Tell the team how to assemble it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery, 2021-06-30
@vmakhnyuk

Usually package.jsonthere is a section "scripts": {...}in which there is a script with a self-explanatory name build. After executing the command npm run build, the project is built

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question