1.0.0-beta.0 • Published 7 years ago

@glitchapp/sudo-entry v1.0.0-beta.0

Weekly downloads
3
License
MIT
Repository
-
Last release
7 years ago

Sudo entry

npm (scoped) Travis npm

This package is part of Glitch project

A webpack loader that generates an entry by requiring the given resources. Useful when your entry isn't a JavaScript module.

Installation

$ npm install @glitchapp/sudo-entry

Usage

Single file

// File: webpack.config.js

module.exports = {
  // This generates a code similar to:
  //
  //    require('index.html');
  //
  entry: '@glitchapp/sudo-entry?include=index.html!',
  output: {
    filename: 'bundle.js'
  },
  ...
}

Multiple files

// File: webpack.config.js

module.exports = {
  // This generates a code similar to:
  //
  //    require('index.html');
  //    require('style.css');
  //
  entry: '@glitchapp/sudo-entry?include[]=index.html,include[]=style.css!',
  output: {
    filename: 'bundle.js'
  },
  ...
}

Contributing

We value and appreciate your help, please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Running the tests

$ npm test

License

This project is licensed under the MIT License terms

1.0.0-beta.0

7 years ago

1.0.0-alpha.1

7 years ago

1.0.0-alpha.0

7 years ago