Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.
ifeduPublic archive

About

Webpack loader for modify file

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Webpack loader for modify file

const _ = require('lodash')

return {
    loader: 'modify-file-loader',

    options: {
        convert(content: any) {
            return _.template(content, {
                evaluate:    /\{\{(.+?)\}\}/g,
                interpolate: /\{\{=(.+?)\}\}/g,
                escape:      /\{\{-(.+?)\}\}/g
            })({})
        }
    }
}

About

Webpack loader for modify file

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages