Skip to content

Commit

Permalink
Unify dev settings with build
Browse files Browse the repository at this point in the history
  • Loading branch information
minevala committed Feb 1, 2023
1 parent 4acf7d1 commit f5de4a6
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/web-components/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ const processor = postcss(
postcssModules({
global: true,
generateScopedName: '[local]',
getJSON: () => {}
getJSON: () => {},
}),
);

const webpackFinal = async (config) => ({
const webpackFinal = (config) => ({
...config,
resolve: {
...config.resolve,
Expand All @@ -31,14 +31,10 @@ const webpackFinal = async (config) => ({
loader: 'lit-css-loader',
options: {
specifier: 'lit-element',
transform: async (css, { filePath }) => {
return processor.process(css, { from: filePath }).then((result) => {
return result.css;
});
},
transform: (css, { filePath }) => processor.process(css, { from: filePath }).then((res) => res.css),
},
},
'sass-loader'
'sass-loader',
],
},
],
Expand Down

0 comments on commit f5de4a6

Please sign in to comment.