All Projects → bazilio91 → Ejs Compiled Loader

bazilio91 / Ejs Compiled Loader

Licence: mit
EJS loader for webpack (without frontend dependencies)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Ejs Compiled Loader

Template.js
A javascript template engine, simple, easy & extras, support webpack, rollup, parcel, browserify, fis and gulp
Stars: ✭ 1,201 (+1077.45%)
Mutual labels:  webpack, ejs
Webpack Seed
🚀 A Multi-Page Application base on webpack and babel. webpack搭建基于ES6,支持模板的多页面项目
Stars: ✭ 113 (+10.78%)
Mutual labels:  webpack, ejs
Dejs
ejs template engine for deno.
Stars: ✭ 99 (-2.94%)
Mutual labels:  ejs
Fe Blog
前端学习笔记,JavaScript基础,LeetCode,手写API,Vue源码解析,前端面试题
Stars: ✭ 99 (-2.94%)
Mutual labels:  webpack
Asf Ui
The official web interface for ASF
Stars: ✭ 100 (-1.96%)
Mutual labels:  webpack
Nodeppt
This is probably the best web presentation tool so far!
Stars: ✭ 9,589 (+9300.98%)
Mutual labels:  webpack
Wordless
All the power of Pug, Sass, Coffeescript and WebPack in your WordPress theme. Stop writing themes like it's 1998.
Stars: ✭ 1,374 (+1247.06%)
Mutual labels:  webpack
Vuedemo sell eleme
ele by vue2.x 🐧
Stars: ✭ 1,349 (+1222.55%)
Mutual labels:  webpack
Koa Mobx React Starter
A straightforward starter for Node javascript web projects. Using Koa, MobX and ReactJS (with universal / isomorphic server rendering)
Stars: ✭ 102 (+0%)
Mutual labels:  webpack
Webpack Wordpress
Build Wordpress themes using Webpack and Hot Module Reloading
Stars: ✭ 100 (-1.96%)
Mutual labels:  webpack
Sambell
wake me when it's quitting time
Stars: ✭ 101 (-0.98%)
Mutual labels:  webpack
React Uport Box
Truffle, Webpack, React, Redux boilerplate with routing and authentication via a UPort.
Stars: ✭ 99 (-2.94%)
Mutual labels:  webpack
Art Template
High performance JavaScript templating engine
Stars: ✭ 9,554 (+9266.67%)
Mutual labels:  webpack
Webpack Bundle Size Analyzer
A tool for finding out what contributes to the size of Webpack bundles
Stars: ✭ 1,376 (+1249.02%)
Mutual labels:  webpack
Ng Boot Oauth
oauth2 demo with angularjs and springboot
Stars: ✭ 99 (-2.94%)
Mutual labels:  webpack
Frontie Webpack
Front-end Boilerplate | Gulp 4 + Webpack 4 + Babel + ITCSS Architecture + BEM Methodology + Twig.js
Stars: ✭ 102 (+0%)
Mutual labels:  webpack
Stack Source Map
Add source map support for error stack (Chrome only)
Stars: ✭ 98 (-3.92%)
Mutual labels:  webpack
Jhipster Microservices Example
JHipster Microservices Example using Spring Cloud, Spring Boot, Angular, Docker, and Kubernetes
Stars: ✭ 100 (-1.96%)
Mutual labels:  webpack
Cloudflare Workers Webpack Boilerplate
A superbly simple, minimal-config template for building, bundling and deploying Cloudflare Workers with Webpack 🚀
Stars: ✭ 101 (-0.98%)
Mutual labels:  webpack
Anvel
Angular 2 Laravel Starter Kit
Stars: ✭ 102 (+0%)
Mutual labels:  webpack

ejs-compiled-loader for webpack

EJS loader for webpack. Uses ejs function to compile templates.

To use EJS by tj use 1.x branch and 1.x.x versions.

Installation

npm install ejs-compiled-loader

Usage

Documentation: Using loaders

var template = require("ejs-compiled!./file.ejs");
// => returns the template function compiled with ejs templating engine.

// And then use it somewhere in your code
template(data) // Pass object with data

// Child Templates
// path is relative to where webpack is being run
<%- include templates/child -%>

Options

Following options can be specified in query:

beautify — enable or disable uglify-js beautify of template ast

compileDebug — see ejs compileDebug option

htmlmin — see htmlminify section

htmlminify

module: {
  loaders: [
    {test: /\.ejs$/, loader: 'ejs-compiled?htmlmin'} // enable here
  ]
},
'ejs-compiled-loader': {
  'htmlmin': true, // or enable here  
  'htmlminOptions': {
    removeComments: true
  }
}

See all options reference

License

MIT (http://www.opensource.org/licenses/mit-license.php)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].