mirror of
https://github.com/valitydev/checkout.git
synced 2024-11-06 18:45:24 +00:00
30 lines
702 B
JavaScript
30 lines
702 B
JavaScript
|
const path = require('path');
|
||
|
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
|
||
|
const rules = require('./common-rules');
|
||
|
|
||
|
module.exports = {
|
||
|
name: 'initializer',
|
||
|
stats: {
|
||
|
children: false,
|
||
|
moduleTrace: false,
|
||
|
modules: false
|
||
|
},
|
||
|
entry: {
|
||
|
checkout: './src/initializer/index.ts'
|
||
|
},
|
||
|
resolve: {
|
||
|
modules: ['node_modules', path.join(__dirname, 'src/initializer')],
|
||
|
extensions: ['.ts', '.js']
|
||
|
},
|
||
|
module: {
|
||
|
rules
|
||
|
},
|
||
|
plugins: [
|
||
|
new ForkTsCheckerWebpackPlugin({
|
||
|
checkSyntacticErrors: true,
|
||
|
formatter: 'codeframe',
|
||
|
tslint: true
|
||
|
})
|
||
|
]
|
||
|
};
|