1.2.2 • Published 4 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
4 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.1.9
4 years ago
1.1.8
4 years ago
1.1.7
5 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
0.0.6
5 years ago
0.0.5
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
1.0.0
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago