Add Storybook Docs + PostCSS/TailwindCSS builder
This commit is contained in:
23
.storybook/webpack.config.js
Normal file
23
.storybook/webpack.config.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const path = require("path");
|
||||
|
||||
module.exports = ({ config }) => {
|
||||
config.module.rules.push({
|
||||
test: /\.css$/,
|
||||
use: [
|
||||
// Loader for webpack to process CSS with PostCSS
|
||||
{
|
||||
loader: "postcss-loader",
|
||||
options: {
|
||||
sourceMap: true,
|
||||
config: {
|
||||
path: "./.storybook/"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
include: path.resolve(__dirname, "../")
|
||||
});
|
||||
|
||||
return config;
|
||||
};
|
||||
Reference in New Issue
Block a user