checkout/config/initializer-config.js

30 lines
702 B
JavaScript
Raw Normal View History

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
})
]
};