1.5.1 • Published 3 years ago
vdt-loader v1.5.1
vdt loader for webpack
Installation
npm install vdt-loader --save-dev
Usage
require('vdt?noWith!./file.vdt');
Alternately, set this in config file.
For webpack@1.0
module: {
loaders: [
test: /\.vdt$/,
loader: 'vdt-loader?noWith&delimiters={{}}'
]
}
For webpack@2.0/3.0
module: {
rules: [
{
test: /\.vdt$/,
use: [
{
loader: 'vdt-loader',
options: {
noWith: true,
delimiters: ['{{', '}}']
}
}
]
}
]
}
Querystring
You can also pass querystring like below
'vdt-loader?options=' + encodeURIComponent(JSON.stringify({
noWith: true,
delimiters: ['{{', '}}']
}))
Notice
- v1.4.2 之后默认全部导出为es6模块 , 不再支持导出commonjs模块
3.0.0-beta.1
3 years ago
3.0.0-beta.0
3 years ago
1.5.1
6 years ago
1.5.0
6 years ago
1.4.4
6 years ago
1.4.3
6 years ago
1.4.2
6 years ago
1.4.1
6 years ago
1.4.0
6 years ago
1.3.2
6 years ago
1.3.1
6 years ago
1.3.0
6 years ago
1.2.1
7 years ago
1.2.0
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.0
7 years ago
0.0.2
8 years ago
0.0.1
8 years ago