2.1.56 • Published 7 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
7 years ago
2.1.55
7 years ago
2.1.54
7 years ago
2.1.53
7 years ago
2.1.52
7 years ago
2.1.51
7 years ago
2.1.50
7 years ago
2.1.49
7 years ago
2.1.48
7 years ago
2.1.47
7 years ago
2.1.46
7 years ago
2.1.45
7 years ago
2.1.44
7 years ago
2.1.43
7 years ago
2.1.42
7 years ago
2.1.41
7 years ago
2.1.40
7 years ago
2.1.39
7 years ago
2.1.38
7 years ago
2.1.37
7 years ago
2.1.36
7 years ago
2.1.35
7 years ago
2.1.34
7 years ago
2.1.33
7 years ago
2.1.32
7 years ago
2.1.31
7 years ago
2.1.30
7 years ago
2.1.29
7 years ago
2.1.28
7 years ago
2.1.27
7 years ago
2.1.26
7 years ago
2.1.25
7 years ago
2.1.24
7 years ago
2.1.23
7 years ago
2.1.22
7 years ago
2.1.21
7 years ago
2.1.20
7 years ago
2.1.19
7 years ago
2.1.18
7 years ago
2.1.17
7 years ago
2.1.16
7 years ago
2.1.15
7 years ago
2.1.14
7 years ago
2.1.13
7 years ago
2.1.12
7 years ago
2.1.11
7 years ago
2.1.10
7 years ago
2.1.9
7 years ago
2.1.8
7 years ago
2.1.7
7 years ago
2.1.6
7 years ago
2.1.5
7 years ago
2.1.4
7 years ago
2.1.3
7 years ago
2.1.1
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago