Files
chrysalis-mirror/webpack.main.additions.js
Gergely Nagy b7495c44c0 Make our use of @api, @renderer and @main includes more consistent
Whenever we cross a major border, use them. If we're including from within a
logical unit, things that will be moved together, then use relative imports.

Additionally, introduce the `@root` alias, so we can simplify the `package.json`
imports too.

Fixes #800.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2022-05-20 14:29:38 +02:00

20 lines
382 B
JavaScript

const path = require("path");
module.exports = {
stats: {
children: false,
loggingTrace: false,
logging: "info",
},
devServer: {
stats: "errors-only",
},
resolve: {
alias: {
"@api": path.resolve(__dirname, "src/api"),
"@renderer": path.resolve(__dirname, "src/renderer"),
"@main": path.resolve(__dirname, "src/main"),
},
},
};