lasso-any-file

1.0.0 • Public • Published

lasso-any-file

Lasso.js bundler to put any file/asset into output static directory

npm install --save lasso-any-file

Example usage

In your lasso config

let lasso_config = {
    "outputDir" : "static",
    "plugins": [
        {
            "plugin":"lasso-any-file",
            "config":{
                "dir_name": "myfiles"  // This copies the bundled assets to static/myfiles
            }
        }
    ]
}

In your browser.json

{
  "dependencies": [
    {
      "path": "./path-to/song1.mp3",
      "type": "lasso-any-file",
      "out_dir": "songs" // copies song1.mp3 to static/myfiles/songs/song1.mp3
    },
    {
      "path": "./path-to/file1.pdf",
      "type": "lasso-any-file",
      "out_dir": "docs" // copies file1.pdf to static/myfiles/docs/file1.pdf
    }
  ]
}

Package Sidebar

Install

npm i lasso-any-file

Weekly Downloads

3

Version

1.0.0

License

ISC

Unpacked Size

6.74 kB

Total Files

5

Last publish

Collaborators

  • cuterajat26