1.2.2 • Published 5 years ago
service-gen-loader v1.2.2
Getting Started
install
$ yarn add service-gen-loader -D
service-mapping.json
import mapping from './service-mapping.json';
Then add the loader to your webpack
config. For example:
webpack.config.js
module.exports = {
module: {
rules: [
{
test: /-mapping.json$/,
use: [
{
loader: 'service-gen-loader',
options: {
fileName: 'service.js',
declareFileName: 'service.d.ts',
filePath: (ctx) => {
return ctx.context;
},
declareFilePath: (ctx) => {
return path.resolve(ctx.context, '../types');
}
}
}
]
}
]
}
}
1.2.2
5 years ago
1.2.1
5 years ago
1.2.0
6 years ago
1.1.9
6 years ago
1.1.8
6 years ago
1.1.7
6 years ago
1.1.6
6 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
1.0.0
6 years ago
0.0.2
6 years ago
0.0.1
7 years ago