Skip to content

Commit

Permalink
fix: css bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaccoSordo committed Jan 13, 2025
1 parent fd142d6 commit 45b7df8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 85 deletions.
69 changes: 0 additions & 69 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/beacon-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"@types/node": "^20.6.0",
"@types/qrcode-svg": "^1.1.2",
"rollup": "^3.29.1",
"rollup-plugin-import-css": "^3.3.3",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-svg": "^2.0.0",
"rollup-plugin-typescript2": "^0.35.0",
Expand Down
27 changes: 12 additions & 15 deletions packages/beacon-ui/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import postcss from 'rollup-plugin-postcss'
import css from 'rollup-plugin-import-css'
import typescript from 'rollup-plugin-typescript2'
import babel from '@rollup/plugin-babel'
import terser from '@rollup/plugin-terser'
Expand All @@ -20,12 +19,11 @@ export default [
plugins: [
resolve({ extensions }),
commonjs(),
// postcss({
// extract: true,
// minimize: true,
// sourceMap: true,
// }),
css(),
postcss({
inject: true,
minimize: true,
sourceMap: true
}),
typescript({
tsconfig: 'tsconfig.json'
}),
Expand All @@ -34,7 +32,7 @@ export default [
babelHelpers: 'bundled',
include: ['src/**/*'],
presets: [['@babel/preset-react', { runtime: 'automatic' }]]
}),
})
// terser()
]
},
Expand All @@ -55,12 +53,11 @@ export default [
plugins: [
resolve({ extensions }),
commonjs(),
// postcss({
// extract: true,
// minimize: true,
// sourceMap: true,
// }),
css(),
postcss({
inject: true,
minimize: true,
sourceMap: true
}),
typescript({
tsconfig: 'tsconfig.json'
}),
Expand All @@ -69,7 +66,7 @@ export default [
babelHelpers: 'bundled',
include: ['src/**/*'],
presets: [['@babel/preset-react', { runtime: 'automatic' }]]
}),
})
// terser()
]
}
Expand Down

0 comments on commit 45b7df8

Please sign in to comment.