1.0.0-beta.0 • Published 8 years ago
@glitchapp/lib v1.0.0-beta.0
Glitch lib
This package is part of Glitch project
Glitch's core Node.js module. It generates a suitable webpack configuration object internally then passes you a preconfigured Compiler instance
Installation
$ npm install @glitchapp/libAPI
prepare
Generates a suitable webpack configuration object internally based on the
given compiler options (options).
Parameters
optionsCompilerOptions
Examples
const compiler = prepare({
path: 'path/to/project/dir',
fs: require('fs')
})
compiler.run((err, stats) => {
// ...
})Returns webpack.Compiler instance
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 testAcknowledgments
Inspired by the awesome work of Facebook in their create-react-app package.
License
This project is licensed under the MIT License terms