mirror of
https://github.com/flarum/core.git
synced 2025-08-09 09:57:06 +02:00
Add documentation
This commit is contained in:
14
js-packages/webpack-config/README.md
Executable file
14
js-packages/webpack-config/README.md
Executable 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'`).
|
Reference in New Issue
Block a user