0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/packages/ui/razzle.config.js
2021-07-25 17:41:07 +08:00

20 lines
365 B
JavaScript

"use strict";
const path = require("path");
module.exports = {
options: {
buildType: "spa",
},
plugins: ["scss"],
modifyWebpackConfig: ({ webpackConfig }) => {
/** @type {import('webpack').Configuration} **/
const config = { ...webpackConfig };
config.resolve.alias = {
"@": path.resolve("src/"),
};
return config;
},
};