20 lines
334 B
JavaScript
20 lines
334 B
JavaScript
|
module.exports = {
|
||
|
webpack: (config, options, webpack) => {
|
||
|
config.entry.main = [
|
||
|
'./src/main.ts'
|
||
|
]
|
||
|
|
||
|
config.resolve = {
|
||
|
extensions: [".ts", ".js", ".json"]
|
||
|
};
|
||
|
|
||
|
config.module.rules.push(
|
||
|
{
|
||
|
test: /\.ts$/,
|
||
|
loader: 'awesome-typescript-loader'
|
||
|
}
|
||
|
);
|
||
|
|
||
|
return config
|
||
|
}
|
||
|
}
|