mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
20 lines
365 B
JavaScript
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;
|
|
},
|
|
};
|