Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrey-skl/compile-code-loader
Compiles javascript with webpack and loads result as string
https://github.com/andrey-skl/compile-code-loader
Last synced: 21 days ago
JSON representation
Compiles javascript with webpack and loads result as string
- Host: GitHub
- URL: https://github.com/andrey-skl/compile-code-loader
- Owner: andrey-skl
- Created: 2016-01-15T11:47:11.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T14:04:03.000Z (almost 2 years ago)
- Last Synced: 2024-11-01T19:03:24.850Z (2 months ago)
- Language: JavaScript
- Size: 172 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# compile-code-loader
Compiles javascript with webpack and loads result as string#Usage:
To compile and get result as string:
```js
var compiledSourceString = require('compile-code?asString=true!./fileToLoad');
```Also it is possible to get result as javascript and apply transformation, uglifyjs for example:
```js
var compiledSourceString = require('raw!uglify!compile-code!./fileToLoad');
```### Contributing
1. `npm install`
2. `cd examples && npm install`
3. `npm run build-examples`