RenaiApp/webpack.config.js

40 lines
810 B
JavaScript
Raw Normal View History

const path = require('path');
module.exports = {
entry: {
bundle: path.resolve(__dirname, 'src/renderer.ts'),
},
target: 'electron-renderer',
output: {
path: path.resolve(__dirname, 'frontend'),
},
module: {
rules: [
{
test: /\.svelte$/,
loaders: [
{
loader: 'svelte-loader',
},
],
},
{
test: /\.ts$/,
loader: [
{
loader: 'ts-loader',
},
],
},
],
},
resolve: {
extensions: ['.js', '.ts'],
alias: {
atoms: path.resolve(__dirname, 'src/renderer/components/1-atoms'),
2019-06-18 00:36:51 +02:00
molecules: path.resolve(__dirname, 'src/renderer/components/2-molecules'),
services: path.resolve(__dirname, 'src/renderer/services'),
},
},
};