mirror of
https://github.com/flarum/core.git
synced 2025-10-24 13:16:08 +02:00
15 lines
492 B
Markdown
Executable File
15 lines
492 B
Markdown
Executable File
**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'`).
|