Skip to content

insideone/qml-webpack-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qml-webpack-loader

Instructs webpack to emit the required qml as json provided by qmlweb-parser

Install

npm install --save-dev qml-webpack-loader

Usage

import qmlData from './sample.qml'

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.qml/,
        loader: 'qml-webpack-loader'
      }
    ]
  }
}

options

  • requireRegex - require() all strings that qualify regex