Skip to content

sham-ui/rollup-plugin-sham-ui-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rollup plugin for compile sham-ui templates

yarn add -D rollup-plugin-sham-ui-templates

Usage

import shamUICompiler from 'rollup-plugin-sham-ui-templates';
import { babel } from '@rollup/plugin-babel';

export default {
    input: 'src/main.js',
    output: {
        file: 'dist/bundle.js',
        format: 'iife',
        sourcemap: true
    },
    plugins: [
        shamUICompiler( {
            extensions: [ '.sht' ]
        } ),
        shamUICompiler( {
            extensions: [ '.sfc' ],
            compilerOptions: {
                asModule: false,
                asSingleFileComponent: true
            }
        } ),
        babel( {
            extensions: [ '.js', '.sht', '.sfc' ],
            exclude: [ 'node_modules/**' ],
            babelHelpers: 'bundled'
        } )
    ]
};

About

Rollup plugin for compile sham-ui templates

Resources

License

Stars

Watchers

Forks

Packages

No packages published