PromucFlow_constructor/app/client/craco.common.config.js

27 lines
595 B
JavaScript
Raw Normal View History

const CracoAlias = require("craco-alias");
2020-06-02 07:54:31 +00:00
module.exports = {
2020-06-02 07:54:31 +00:00
plugins: [
{
plugin: CracoAlias,
options: {
source: "tsconfig",
// baseUrl SHOULD be specified
// plugin does not take it from tsconfig
baseUrl: "./src",
// tsConfigPath should point to the file where "baseUrl" and "paths" are specified
tsConfigPath: "./tsconfig.path.json",
},
},
2020-06-02 07:54:31 +00:00
{
plugin: "prismjs",
options: {
languages: ["javascript"],
plugins: [],
theme: "twilight",
css: false,
},
},
],
};