Skip to content

Commit 65d8be2

Browse files
author
Administrator
committed
story book
1 parent 290fdb4 commit 65d8be2

25 files changed

+10421
-48481
lines changed

.storybook/main.js

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,48 @@
11
const path = require("path");
2-
32
module.exports = {
43
stories: ["../src/**/*.stories.tsx"],
54
// Add any Storybook addons you want here: https://storybook.js.org/addons/
65
addons: [],
7-
webpackFinal: async (config) => {
6+
webpackFinal: async config => {
7+
/*
88
config.module.rules.push({
99
test: /\.scss$/,
1010
use: ["style-loader", "css-loader", "sass-loader"],
1111
include: path.resolve(__dirname, "../")
1212
});
13+
*/
14+
config.module.rules.push({
15+
test: /\.(less)$/,
16+
use: ["style-loader", "css-loader", "less-loader"],
17+
include: path.resolve(__dirname, "../")
18+
});
1319

20+
/*
21+
config.module.rules.push({
22+
test: /\.(less)$/,
23+
use: [{
24+
loader: "style-loader" // creates style nodes from JS strings
25+
}, {
26+
loader: "css-loader" // translates CSS into CommonJS
27+
}, {
28+
loader: "less-loader" // compiles Less to CSS
29+
}]
30+
});
31+
*/
1432
config.module.rules.push({
1533
test: /\.(ts|tsx)$/,
1634
loader: require.resolve("babel-loader"),
1735
options: {
18-
presets: [["react-app", { flow: false, typescript: true }]]
36+
presets: [["react-app", {
37+
flow: false,
38+
typescript: true
39+
}]]
1940
}
2041
});
21-
config.resolve.extensions.push(".ts", ".tsx");
22-
42+
config.resolve.extensions.push(".ts", ".tsx", ".less");
2343
return config;
44+
},
45+
core: {
46+
builder: "@storybook/builder-webpack5"
2447
}
25-
};
48+
};

jest.config.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

jest.setup.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)