-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d06c09c
commit a5397d8
Showing
126 changed files
with
29,289 additions
and
27,905 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16 | ||
18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
const webpack = require("webpack"); | ||
const sass = require("sass"); | ||
const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer"); | ||
|
||
require("dotenv").config(); | ||
|
||
const pkg = require("../package.json"); | ||
|
||
const examplesPath = path.join(__dirname, "..", "examples"); | ||
|
@@ -19,22 +16,34 @@ const SVG_ICONS = fs.readFileSync( | |
const EMBEDLY_API_KEY_PROD = "d23c29a928fe4d89bda46b0291914c9c"; | ||
const EMBEDLY_API_KEY = process.env.EMBEDLY_API_KEY || EMBEDLY_API_KEY_PROD; | ||
|
||
const SENTRY_DSN_PROD = | ||
"https://[email protected]/251576"; | ||
|
||
module.exports = { | ||
stories: ["../examples/**/*.story.*"], | ||
framework: "@storybook/react", | ||
core: { | ||
builder: { | ||
name: "webpack5", | ||
options: { | ||
lazyCompilation: true, | ||
fsCache: true, | ||
}, | ||
}, | ||
disableTelemetry: true, | ||
}, | ||
staticDirs: ["../public"], | ||
webpackFinal: (config, { configType }) => { | ||
const isProduction = configType === "PRODUCTION"; | ||
|
||
// See http://webpack.github.io/docs/configuration.html#devtool | ||
config.devtool = "source-map"; | ||
|
||
config.resolve.alias = { | ||
...config.resolve.alias, | ||
// "react-dom": path.resolve("..", "node_modules", "react-dom"), | ||
// "react-dom/client": path.resolve("..", "node_modules", "react-dom"), | ||
}; | ||
|
||
config.module.rules.push({ | ||
test: /\.(scss|css)$/, | ||
loaders: ["style-loader", "css-loader", "sass-loader"], | ||
use: ["style-loader", "css-loader", "sass-loader"], | ||
include: path.resolve(__dirname, "../"), | ||
}); | ||
|
||
|
@@ -46,7 +55,6 @@ module.exports = { | |
), | ||
PKG_VERSION: JSON.stringify(pkg.version), | ||
SVG_ICONS: JSON.stringify(SVG_ICONS), | ||
SENTRY_DSN: JSON.stringify(isProduction ? SENTRY_DSN_PROD : ""), | ||
}), | ||
); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.