Skip to content
This repository has been archived by the owner on Jul 29, 2021. It is now read-only.

sham-ui/sham-ui-templates-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sham-ui-templates loader for webpack

npm install sham-ui-templates-loader --save

Usage

module.exports = {
  ...
  module: {
    rules: [
      {
        test: /\.sht$/,
        loader: 'sham-ui-templates-loader'
      },
      {
        test: /\.sfc$/,
        use: [
           { loader: 'babel-loader' },
           { 
             loader: 'sham-ui-templates-loader', 
             options: {
               asModule: false,
               asSingleFileComponent: true
             } 
           }
        ]
      }
    ]
  },
  ...
};

Configuration

Add sham-ui section to your webpack.config.js:

'sham-ui': {
  globals: ['window'],
  transforms: [...]
}

About

Webpack loader for shamui-templates

Resources

License

Stars

Watchers

Forks

Packages

No packages published