Skip to content

A webpack plugin that can inject variables and compile ejs into HTML

License

Notifications You must be signed in to change notification settings

yusongh/ejs2html-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

项目介绍

ejs2htmlWebpackPlugin是一款可以将ejs转为html,并将其打包的webpack插件。

安装和使用

NPM

npm install ejs2htmlWebpackPlugin -D

在webpack.config.js中

const Ejs2HtmlWebpackPlugin = require('ejs2html-webpack-plugin')

module.exports = {
  plugins: [
    new Ejs2HtmlWebpackPlugin({
      targetPath: '',
      data: {

      },
      fileName: 'test.html'
    })
  ]
}

About

A webpack plugin that can inject variables and compile ejs into HTML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published