2.1.56 • Published 8 years ago
nodeart-components-loader v2.1.56
Nodeart-Components-Loader
Angular 2 webpack loader that convert templates and styles paths in components if there are custom templates.
Tutorial
- In your webpack config file add path to custom templates and style folders. For getting path to project's root use app-root-path Example:
let appRoot = require('app-root-path');
let path = require('path');
let templatesPath = path.join(appRoot + '/src/@nodeart/templates');
let stylesPath = path.join(appRoot + '/src/@nodeart/styles');
- Install nodeart-components-loader from npm:
npm install --save nodeart-components-loader
- Add loader to webpack config file
test: /\.ts$/,
loaders: [
'nodeart-loader?templatesPath=' + templatesPath + '&stylesPath=' + stylesPath
]
- Create custom html template in your templates folder with the same origin template. Loader will change path.
- Finish
2.1.56
8 years ago
2.1.55
8 years ago
2.1.54
8 years ago
2.1.53
8 years ago
2.1.52
8 years ago
2.1.51
8 years ago
2.1.50
8 years ago
2.1.49
8 years ago
2.1.48
8 years ago
2.1.47
8 years ago
2.1.46
8 years ago
2.1.45
8 years ago
2.1.44
8 years ago
2.1.43
8 years ago
2.1.42
8 years ago
2.1.41
8 years ago
2.1.40
8 years ago
2.1.39
8 years ago
2.1.38
8 years ago
2.1.37
8 years ago
2.1.36
8 years ago
2.1.35
8 years ago
2.1.34
8 years ago
2.1.33
8 years ago
2.1.32
8 years ago
2.1.31
8 years ago
2.1.30
8 years ago
2.1.29
8 years ago
2.1.28
8 years ago
2.1.27
8 years ago
2.1.26
8 years ago
2.1.25
8 years ago
2.1.24
8 years ago
2.1.23
8 years ago
2.1.22
8 years ago
2.1.21
8 years ago
2.1.20
8 years ago
2.1.19
8 years ago
2.1.18
8 years ago
2.1.17
8 years ago
2.1.16
8 years ago
2.1.15
8 years ago
2.1.14
8 years ago
2.1.13
8 years ago
2.1.12
8 years ago
2.1.11
8 years ago
2.1.10
8 years ago
2.1.9
8 years ago
2.1.8
8 years ago
2.1.7
8 years ago
2.1.6
8 years ago
2.1.5
8 years ago
2.1.4
8 years ago
2.1.3
8 years ago
2.1.1
8 years ago
1.0.1
9 years ago
1.0.0
9 years ago