Skip to content

Commit

Permalink
feat: add webpack5 + storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelzinh3 committed Sep 22, 2023
1 parent fbf75db commit ef65114
Show file tree
Hide file tree
Showing 35 changed files with 21,183 additions and 706 deletions.
11 changes: 11 additions & 0 deletions app/tailwind/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"plugins": ["@babel/syntax-dynamic-import"],
"presets": [
[
"@babel/preset-env",
{
"modules": false
}
]
]
}
17 changes: 17 additions & 0 deletions app/tailwind/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/** @type { import('@storybook/html-webpack5').StorybookConfig } */
const config = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
],
framework: {
name: "@storybook/html-webpack5",
options: {},
},
docs: {
autodocs: "tag",
},
};
export default config;
2 changes: 2 additions & 0 deletions app/tailwind/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import '../static/dist/tailwind/css/page.css';

15 changes: 15 additions & 0 deletions app/tailwind/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 🚀 Welcome to your new awesome project!

This project has been created using **webpack-cli**, you can now run

```
npm run build
```

or

```
yarn build
```

to bundle your application
12 changes: 12 additions & 0 deletions app/tailwind/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Webpack App</title>
</head>
<body>
<h1>Hello world!</h1>
<h2>Tip: Check your console</h2>
</body>

</html>
Loading

0 comments on commit ef65114

Please sign in to comment.