marko-script-tag-loader
v1.0.1
Published
Webpack loader to remove <script> tags from a marko file
Downloads
4
Readme
Webpack loader to remove <script> tags from a marko file
Now your marko files can be like this, when using webpack
<script>
import Framework7 from "Framework7";
import config from "./routes";
import Dom7 from "Dom7"
</script>
<div id="">
<h1>hello</h1>
</div>
Installation
npm install -d marko-script-tag-loader
Usage
Add following in your webpack.config.js
{
module: {
rules: [
{
test: /\.marko$/,
use: [
{ loader: "@marko/webpack/loader" },
{ loader: 'marko-script-tag-remover' }
}
]
}