Socket
Socket
Sign inDemoInstall

rollup-plugin-extension-mapper

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rollup-plugin-extension-mapper

Changes the file extensions used in imports. Useful in multistage builds where Rollup gets the output of another step.


Version published
Weekly downloads
85
decreased by-46.87%
Maintainers
1
Install size
7.26 kB
Created
Weekly downloads
 

Readme

Source

rollup-plugin-extension-mapper

A Rollup plugin for changing import extensions

Changes the file extensions used in imports. Useful in multi-stage builds where Rollup gets the output of another step.

Installation

npm install --save-dev https://github.com/franklin-ross/rollup-plugin-extension-mapper.git

Programmatic Usage

// rollup.config.js
export default {
  entry: "src/entry.js",
  dest: "dist/main.js",
  moduleName: "my-module",
  plugins: [
    extensionMapper({
      // Makes Rollup look for a *.css file whenever it finds a *.scss file. You might have built
      // the scss into css earlier using node-sass, but you'd still prefer to import the original
      // scss source file in you Javascript source.
      ".scss": ".css"
    }),
    //Do something with the css files.
    postcss({ })
  ]
}

FAQs

Last updated on 26 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc