Webpack学习:Webpack项目结构

搬运自 Webpack Project Structure,仅自己学习记录。

Project Structure

├── build/                      # webpack config files
								## webpack配置文件
│   └── ...
├── config/
│   ├── index.js                # main project config
                                ## 项目配置文件
│   └── ...
├── src/						# This is where most of your application code will live in
   								## 大部分程序代码所在的位置
│   ├── main.js                 # app entry file
│   ├── App.vue                 # main app component
│   ├── components/             # ui components
│   │   └── ...
│   └── assets/                 # module assets (processed by webpack)
│       └── ...
├── static/                     # pure static assets (directly copied)
								## 静态资源,说人话就是没有用npm指令拉下来的第三方插件或者是
├── test/
│   └── unit/                   # unit tests
│   │   ├── specs/              # test spec files
│   │   ├── eslintrc            # config file for eslint with extra settings only for unit tests
│   │   ├── index.js            # test build entry file
│   │   ├── jest.conf.js        # Config file when using Jest for unit tests
│   │   └── karma.conf.js       # test runner config file when using Karma for unit tests
│   │   ├── setup.js            # file that runs before Jest runs your unit tests
│   └── e2e/                    # e2e tests
│   │   ├── specs/              # test spec files
│   │   ├── custom-assertions/  # custom assertions for e2e tests
│   │   ├── runner.js           # test runner script
│   │   └── nightwatch.conf.js  # test runner config file
								## test部分暂时不了解
├── .babelrc                    # babel config
├── .editorconfig               # indentation, spaces/tabs and similar settings for your editor
├── .eslintrc.js                # eslint config
├── .eslintignore               # eslint ignore rules
├── .gitignore                  # sensible defaults for gitignore
├── .postcssrc.js               # postcss config
├── index.html                  # index.html template
├── package.json                # build scripts and dependencies
                                # The NPM package meta file that contains all the build dependencies and build commands.
                                ## 包含所有构造依赖和构造命令
└── README.md                   # Default README file