Skip to content

ultimicro/dovm-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOVM Loader

npm

This is a loader for webpack 5 to load *.dovm files.

Install

npm i --save-dev dovm-loader

Usage

This loader required to chain with ts-loader due to it produce TypeScript from *.dovm. Example webpack.config.js:

module.exports = {
  module: {
    rules: [
      {
        test: /\.dovm$/i,
        use: [
          {
            loader: 'ts-loader',
            options: {
              onlyCompileBundledFiles: true,
              appendTsSuffixTo: [/\.dovm$/i]
            }
          },
          {
            loader: 'dovm-loader'
          }
        ]
      }
    ]
  }
};

Options

  • sourceFile: true to dump a compiled source to component.dovm.ts. The purpose of this option is for debugging.

License

MIT