1
0
mirror of https://github.com/flarum/core.git synced 2025-08-09 09:57:06 +02:00

Add documentation

This commit is contained in:
Toby Zerner
2018-02-24 16:29:19 +10:30
parent 2b80a9913c
commit 99aa1bd769
3 changed files with 52 additions and 10 deletions

View File

@@ -0,0 +1,14 @@
**Webpack config for Flarum JavaScript compilation.**
This package generates a [Webpack](https://webpack.js.org) config object that will compile JavaScript for use in Flarum. Example usage:
```js
// webpack.config.js
var config = require('flarum-webpack-config');
module.exports = config(options);
```
## Options
* `compatPrefix` Old-style module prefix (eg. `flarum/sticky`) to alias. Setting this will also enable importing old-style core modules (eg. `import foo from 'flarum/foo'`).