@macaron-elements/loader-webpack
v0.3.1
Published
Webpack loader for Macaron files
Downloads
2
Readme
webpack Macaron loader
A webpack loader to load Macaron files as JavaScript modules.
import "./test.macaron";
const element = document.createElement("component-created-in-macaron");
Install
npm install @macaron-elements/loader-webpack --save-dev
Setup
webpack.config.js
module.exports = {
// ...
module: {
// ...
rules: [
{
test: /\.macaron/,
use: ["@macaron-elements/loader-webpack"],
},
],
},
};