Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.

Latest commit

 

History

History
41 lines (29 loc) · 1.65 KB

File metadata and controls

41 lines (29 loc) · 1.65 KB

Configuration

File structure:

  • src – Source files
    • config – Name convention: [tool].[enviroment].config.js
      • babel.config.js
      • webpack.development.config.js
      • webpack.production.config.js
      • tests.config.js

Babel

This project uses Babel. By default folder aliases for module-resolver plugin are:

  • Style: ./src/app/style/
  • Component: ./src/app/component/
  • Route: ./src/app/route/
  • Store: ./src/app/store/
  • Util: ./src/app/util/
  • Query: ./src/app/query/
  • Type: ./src/app/type

Other default, pre-installed plugins are:

Default presets:

Note: babel.config.js is not default Babel configuration. It is custom file, which simply exports babel presets and plugins (names are similar due to name convention chosen for this directory). It is later used by Webpack babel-loader directly. This is a workaround for a babel issue.

Webpack

Read more in Webpack configuration