rollup-plugin-inline-import
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

rollup-plugin-inline-import

  • import file content as string
  • support css, scss, sass file automatically convert to css string and minify powered by sass and lightingcss
  • custimized prefix、transformer
pnpm i rollup-plugin-inline-import -D
// rollup.config.js
import inline from "rollup-plugin-inline-import";
const inputOptions: RollupOptions = {
  input: "./test/test.ts",
  output: {
    file: "./test/out/test.js",
    format: "iife",
    name: "test",
  },
  plugins: [
    resolve({
      extensions: [".js", ".jsx", ".ts", ".tsx"],
    }),
    commonjs(),
    babel({
      babelHelpers: "bundled",
      extensions: [".js", ".jsx", ".ts", ".tsx"],
      exclude: "mode_modules/**",
    }),
    inline(),
  ],
};

config



Readme

Keywords

none

Package Sidebar

Install

npm i rollup-plugin-inline-import

Weekly Downloads

0

Version

0.1.1

License

none

Unpacked Size

4.45 kB

Total Files

4

Last publish

Collaborators

  • gmero