sh-loader

1.0.1 • Public • Published

npm node cover size

sh-loader

A sh loader for webpack. Transform .sh file to an object.

Getting Started

To begin, you'll need to install sh-loader:

npm install sh-loader --save-dev

Then add the loader to your webpack config. For example:

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.sh$/,
        use: "sh-loader"
      },
    ],
  },
};

Now, you can import sh file.

import sh from './xxx.sh'
console.log(sh)

And run webpack via your preferred method.

Options

Name Type Default Description
parse {Boolean} true Enable/Disable parse

License

MIT

Package Sidebar

Install

npm i sh-loader

Weekly Downloads

5

Version

1.0.1

License

MIT

Unpacked Size

4.25 kB

Total Files

4

Last publish

Collaborators

  • babychin