TidGi-Desktop/webpack.main.config.js
2021-01-19 20:46:40 +08:00

25 lines
762 B
JavaScript

/* eslint-disable @typescript-eslint/no-var-requires */
// @ts-expect-error ts-migrate(2451) FIXME: Cannot redeclare block-scoped variable 'webpackAli... Remove this comment to see the full error message
const { webpackAlias } = require('./webpack.alias');
const plugins = require('./webpack.plugins');
module.exports = {
/**
* This is the main entry point for your application, it's the first file
* that runs in the main process.
*/
entry: './src/main.ts',
// Put your normal webpack config below here
module: {
rules: require('./webpack.rules'),
},
plugins: plugins.main,
resolve: {
alias: webpackAlias,
extensions: ['.js', '.ts', '.jsx', '.tsx', '.json'],
},
node: {
__filename: true,
__dirname: true,
},
};