mirror of
https://github.com/keyboardio/Chrysalis.git
synced 2026-02-28 19:07:17 +01:00
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>
20 lines
382 B
JavaScript
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"),
|
|
},
|
|
},
|
|
};
|