Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

teach webpack for storybook about our ~ alias from remix

Oleg Isonenb57551553a45
diff --git a/.storybook/main.js b/.storybook/main.js
index 812748167b..bd353925c9 100644
--- a/.storybook/main.js
+++ b/.storybook/main.js
@@ -1,3 +1,5 @@
+const path = require("path");
+
module.exports = {
stories: ["../app/**/*.stories.mdx", "../app/**/*.stories.@(jsx|ts|tsx)"],
addons: [
@@ -6,4 +8,8 @@ module.exports = {
"@storybook/addon-interactions",
],
framework: "@storybook/react",
+ webpackFinal: async (config) => {
+ config.resolve.alias["~"] = path.resolve(__dirname, "../app");
+ return config;
+ },
};