Skip to content
This repository was archived by the owner on Apr 2, 2023. It is now read-only.
louk-langPublic archive

About

Simple loader for using Louk with webpack

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

51 Commits

Folders and files

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"}
                ]
            },
        ]
    }
}

About

Simple loader for using Louk with webpack

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages