search

Home  >  Q&A  >  body text

javascript - package.json in vue project

There are so many dependencies when webpack builds the vue project initially
Which ones can be deleted without affecting the initial state of the project

高洛峰高洛峰2733 days ago836

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-07-05 10:47:23

    When you build it with cli, just select N if you don’t need it.

    For example, if you don’t need it for karam testing, if you choose N, there will be no dependencies

    Another example is the nightwatch tested by e2e

    Such as eslint

    Turn off everything you don’t want to use, and you will have less dependence.

    It’s best not to delete it manually, it’s silly not to mention, time-consuming and labor-intensive, and the scaffolding will report an error

    reply
    0
  • 漂亮男人

    漂亮男人2017-07-05 10:47:23

    There is no need to delete the built template, just npm install it

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-07-05 10:47:23

    You should be using webpackThis template contains a lot of content, including testing, syntax detection, etc.
    If you don’t need so many functions, use vue-cli to generate a webpack simpleThis template is sober.

    reply
    0
  • Cancelreply