Home  >  Q&A  >  body text

javascript - The story between Node, commonJs and vue

Node front-end server environment
CommonJs js modularity
vue MVVM view model

If you plan to use vue to create a project, you need to use modular js
Do you need to build a Node environment when using commonJs?
Do you need to build a Node environment when using vue?

滿天的星座滿天的星座2691 days ago980

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-06-27 09:20:51

    Node is an environment where js runs on the server side. It has nothing to do with what modular solution is used. Browser-side js can also use modular solutions.
    As for whether you need a Node environment, it depends on how you use vue. You can Vue introduces HTML as a library and executes it on the browser. You can also use the vue family bucket for engineering and then package it. This definitely requires the Node environment.

    reply
    0
  • Cancelreply