2018-09-09 17:22:44 -04:00
|
|
|
module.exports = {
|
2020-04-09 10:09:34 -04:00
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
name: "typescript",
|
|
|
|
options: {
|
|
|
|
useBabel: true,
|
|
|
|
useEslint: true,
|
|
|
|
forkTsChecker: {
|
|
|
|
tsconfig: "./tsconfig.json",
|
|
|
|
tslint: undefined,
|
|
|
|
watch: "./src",
|
|
|
|
typeCheck: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2018-09-09 17:22:44 -04:00
|
|
|
modify: (config, { target, dev }, webpack) => {
|
|
|
|
// load webfonts
|
|
|
|
rules = config.module.rules || [];
|
|
|
|
rules.push({
|
|
|
|
test: /\.(eot|svg|ttf|woff|woff2)$/,
|
|
|
|
loader: 'file-loader?name=public/fonts/[name].[ext]'
|
|
|
|
})
|
|
|
|
config.module.rules = rules;
|
|
|
|
|
|
|
|
return config;
|
|
|
|
},
|
|
|
|
};
|