Skip to content

loonguo/rollup-plugin-raw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollup-plugin-raw

Importing asset as string

import positionVertex from "./position.vert.wgsl?raw";

Installation

npm install @loonguo/rollup-plugin-raw --save-dev

Usage

import raw from "@loonguo/rollup-plugin-raw";

rollup({
  input: 'src/index.js',
  plugins: [
    raw({
      include: "**/*.wgsl",
    })
  ]
});

Typescript

{
  "compilerOptions": {
    "types": [
      "@loonguo/rollup-plugin-raw"
    ]
  }
}

About

Importing text file as string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published