G
G
Grigory Vasilkov2020-10-02 13:22:14
JavaScript
Grigory Vasilkov, 2020-10-02 13:22:14

Compiling a Vue app into a regular js script? Or is it not possible?

Good afternoon, I can not understand the Vue documentation in terms of converting the project to a js file. It starts first about vue, then about build, then about browserify, then vueify appears from somewhere, then it turns out that this is a separate assembly immediately with them and it was necessary to immediately make the project like that, then some modules begin that have never been I saw and did not hear that either do not connect or do not work.

emotions in the spoiler
Современная документация начинает страдать хабровостью или научностью на мой взгляд, википедливостью - все написано для каких-то академиков, а пойди на улицу за Беларусь выступать - одни танцоры да крикуны, больше 3 слов никто не понимает, тогда для кого пишется, для себя что-ли? Ну то есть там не инструкция 1,2,3. Там инструкция вида 1 -> 1.1 -> 1.1.1 -> 1.1.1.1 -> 1.1.1.1.1 - а до два так я и не дошел, закапываясь в это чтение, которое в общем-то вообще уже не про мою задачу, а диалоги о рыбалке и поддержке мировыми браузерами и статистическими рассуждениями, для которых прилагаются десятки пакетов к установке, а зачем не ясно.


I execute npm run build, I get /build/build.js - but connecting it via [script src] still does not work - either require is not found, then the curve module.

The project starts and runs fine in npm run dev mode on the correct port.

A project was created according to the instructions from the official site:
vue init webpack project-name

- delivered a couple of packages - a router there, axios and every little thing
- added webpack.config.js, which was not there, added a loader for stylus.
didn't make any more changes.

I heard that basically they just raise a node.js instance on the server and run the application on a different port, and then somehow pass it through docker or at least nginx to the 80th port and domain name.

And there is no option to compile to connect to an HTML file? or can't it be?

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2020-10-02
@gzhegow

Read the official documentation, and don't fucking understand that it vue init webpackhasn't been used for a couple of years.
Base without any assembly.
Vue-cli - project creation \ assembly with one command.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question