Create a project

  • Open command line
  • Manual setting (Press Enter to confirm, space to select)
    • cd vue-1
    • Open the folder in WebStorm
    • In the WebStorm terminalyarn serve

  • Directory description

  • Editor configuration
    • Add the vue snippets

  • import alias
    • Ts and js@SRC, when referenced directly@/components/xxx.vueCan be
    • Make SCSS available as well@, note that SCSS is used~ @, search for webpack in Settings and add the vuE-1 \node_modules@vue\cli-service\webpack.config.js file
/ / @ is an alias to/SRC import HelloWorld from '@ / components/HelloWorld. Vue / / for @ import "~ @ / assets/styles/test. The SCSS"Copy the code