- Notifications
You must be signed in to change notification settings - Fork21
PaulMaly/svelte-ts-preprocess
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
npm i svelte-ts-preprocess
importsveltefrom"rollup-plugin-svelte";importresolvefrom"rollup-plugin-node-resolve";importcommonjsfrom"rollup-plugin-commonjs";import{terser}from"rollup-plugin-terser";import{preprocess}from"svelte-ts-preprocess";constproduction=!process.env.ROLLUP_WATCH;exportdefault{input:"src/main.js",output:{sourcemap:true,format:"iife",name:"app",file:"public/bundle.js"},plugins:[svelte({// enable run-time checks when not in productiondev:!production,// we'll extract any component CSS out into// a separate file — better for performancecss:css=>{css.write("public/bundle.css");},preprocess:preprocess()}),// If you have external dependencies installed from// npm, you'll most likely need these plugins. In// some cases you'll need additional configuration —// consult the documentation for details:// https://github.com/rollup/rollup-plugin-commonjsresolve(),commonjs(),// If we're building for production (npm run build// instead of npm run dev), minifyproduction&&terser()]};
To install this monorepo you can uselerna + npm
cd svelte-ts-preprocessnpm i lerna -glerna bootstraporlerna + yarn seeuse workspaces
cd svelte-ts-preprocessyarn i lerna -glerna bootstrap --use-workspacesoryarn only
cd svelte-ts-preprocessyarn installAbout
No description, website, or topics provided.
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.