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: 3 months 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T14:04:03.000Z (over 2 years ago)
- Last Synced: 2025-02-13T01:33:46.830Z (5 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`