marko-script-tag-loader

1.0.1 • Public • Published

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' }
        }
    ]
 }       

Readme

Keywords

none

Package Sidebar

Install

npm i marko-script-tag-loader

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

2.04 kB

Total Files

6

Last publish

Collaborators

  • cuterajat26