ejs-wp-loader
v1.1.1
Published
EJS loader for webpack.
Downloads
2
Readme
ejs-wp-loader
EJS loader for webpack.
Install
npm install ejs html-loader ejs-wp-loader --save-dev
# or
yarn add ejs html-loader ejs-wp-loader -D
Usage
// webpack.config.js
const path = require('path')
module.exports = {
// ...
module: {
rules: [
// ...
{
test: /\.ejs$/,
exclude: /node_modules/,
use: [
{
loader: 'html-loader'
},
{
loader: 'ejs-wp-loader',
options: {
alias: { // Configure how modules are resolved.
'@': path.resolve(__dirname, 'src')
}
}
}
]
}
]
}
}
License
MIT