Bootstrap version of the HTML templating UI for the TAK.gov web application.
npm install
npm start
npm run build
- Bundling via webpack
- ES6+ Support via babel
- SASS Support via sass-loader
- Linting via eslint-loader
- Unit Testing via jest
- Code Formatting via prettier
├── src
│ ├── img/
│ ├── js/
│ ├── scss/
│ └── index.html
│ └── {...}.html
├── webpack
│ ├── webpack.common.js
│ ├── webpack.config.dev.js
│ └── webpack.config.prod.js
└── dist/
You can import the entire library or just individual modules:
import * as library from 'library-name'; // lib
import { Component } from 'library-name'; // module
import { Component as CustomComponent } from 'library-name'; // module with custom name
To import nodule_module stylesheets, please use the following syntax:
@import '~library-name/path/to/library.min.css';
You can also import individual SCSS modules. To do it properly, it's recommend copying them from
the ~/node_modules/library-name/path/to/src/scss
location directly to your project and import them.