Add resolution strategies to storybook webpack
This commit is contained in:
parent
271424a912
commit
bf73dba3ef
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
|
@ -47,7 +47,7 @@ jobs:
|
||||||
run: yarn build
|
run: yarn build
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: yarn test
|
run: yarn test
|
||||||
- name: Run tsc and webpack
|
- name: Run webpack
|
||||||
run: yarn bundle
|
run: yarn bundle
|
||||||
|
|
||||||
components-build-test:
|
components-build-test:
|
||||||
|
@ -67,7 +67,7 @@ jobs:
|
||||||
run: cd ../squiggle-lang && yarn build
|
run: cd ../squiggle-lang && yarn build
|
||||||
# - name: Install dependencies for components package
|
# - name: Install dependencies for components package
|
||||||
# run: yarn
|
# run: yarn
|
||||||
- name: Run tsc and webpack # I'm uncertain if bundle comes before build, it was jotted down in a readme that way but it may have been erroneous.
|
- name: Run webpack # I'm uncertain if bundle comes before build, it was jotted down in a readme that way but it may have been erroneous.
|
||||||
run: yarn bundle
|
run: yarn bundle
|
||||||
- name: Build storybook
|
- name: Build storybook
|
||||||
run: yarn build
|
run: yarn build
|
||||||
|
|
|
@ -1,15 +1,11 @@
|
||||||
//const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
//const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
||||||
|
const custom = require('../webpack.config.js');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
/* webpackFinal: async (config) => {
|
webpackFinal: async (config) => {
|
||||||
config.resolve.plugins = [
|
config.resolve.alias = custom.resolve.alias;
|
||||||
...(config.resolve.plugins || []),
|
return { ...config, module: { ...config.module, rules: config.module.rules.concat(custom.module.rules) } };
|
||||||
new TsconfigPathsPlugin({
|
},
|
||||||
extensions: config.resolve.extensions,
|
|
||||||
}),
|
|
||||||
];
|
|
||||||
return config;
|
|
||||||
},*/
|
|
||||||
"stories": [
|
"stories": [
|
||||||
"../src/**/*.stories.mdx",
|
"../src/**/*.stories.mdx",
|
||||||
"../src/**/*.stories.@(js|jsx|ts|tsx)"
|
"../src/**/*.stories.@(js|jsx|ts|tsx)"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user