Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

louk-lang/louk-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Louk Loader

Simple loader for using Louk with webpack.

Build Status Version License

Installation

Install louk-loader via npm.

$ npm install louk-loader -D

Also ensure louk is installed as a peerDependency.

$ npm install louk -D

Configuration

Via Vue Config

If using a Vue CLI project, add a loader via Vue webpack configuration.

// vue.config.js
module.exports = {
    /* ... */
    chainWebpack: config => {
    // Louk Loader
    config.module
        .rule('louk')
        .test(/\.louk$/)
        .use("vue-loader")
            .loader("vue-loader")
            .end()
        .use("louk-loader")
            .loader("louk-loader")
    }
}

Via webpack Config

If using a plain webpack project with Vue, add a loader via webpack configuration, in addition to the Vue Loader.

// webpack.config.js
module.exports = {
    /* ... */
    module: {
        rules: [
            {
                test: /\.louk$/,
                use: [
                    {loader: "vue-loader"},
                    {loader: "louk-loader"}
                ]
            },
        ]
    }
}

Releases

No releases published

Packages

No packages published