2021-07-02 01:11:09 +03:00
|
|
|
// Copyright (c) Microsoft Corporation.
|
|
|
|
// Licensed under the MIT license.
|
2021-06-26 01:03:21 +03:00
|
|
|
const CracoAlias = require("craco-alias");
|
|
|
|
const path = require("path");
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
webpack: {
|
|
|
|
alias: {
|
|
|
|
"@": path.resolve(__dirname, 'src'),
|
|
|
|
}
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
plugin: CracoAlias,
|
|
|
|
options: {
|
|
|
|
source: "tsconfig",
|
|
|
|
baseUrl: "./src",
|
|
|
|
tsConfigPath: "./tsconfig.paths.json",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|