mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 05:10:45 +00:00
Initial checkin
This commit is contained in:
36
rollup.config.ts
Normal file
36
rollup.config.ts
Normal file
@ -0,0 +1,36 @@
|
||||
import typescript from 'rollup-plugin-typescript2';
|
||||
import pkg from './package.json';
|
||||
import postcss from 'rollup-plugin-postcss';
|
||||
import copy from 'rollup-plugin-copy-assets'
|
||||
|
||||
export default {
|
||||
input: 'src/index.tsx',
|
||||
output: [
|
||||
{
|
||||
file: pkg.main,
|
||||
format: 'cjs',
|
||||
},
|
||||
{
|
||||
file: pkg.module,
|
||||
format: 'es',
|
||||
},
|
||||
],
|
||||
external: [
|
||||
...Object.keys(pkg.dependencies || {}),
|
||||
...Object.keys(pkg.peerDependencies || {}),
|
||||
],
|
||||
plugins: [
|
||||
typescript({
|
||||
typescript: require('typescript'),
|
||||
}),
|
||||
postcss({
|
||||
modules: true,
|
||||
namedExports: true
|
||||
}),
|
||||
copy({
|
||||
assets: [
|
||||
"src/assets/images"
|
||||
]
|
||||
})
|
||||
],
|
||||
}
|
Reference in New Issue
Block a user