1
0
mirror of https://github.com/flarum/core.git synced 2025-10-23 12:46:09 +02:00
Files
php-flarum/js-packages/webpack-config
Toby Zerner 7fd61971d6 0.1.0-beta.5
2018-02-24 16:29:58 +10:30
..
2018-02-24 16:29:19 +10:30
2018-02-24 16:29:19 +10:30
2018-02-24 16:29:58 +10:30
2018-02-24 16:29:19 +10:30

Webpack config for Flarum JavaScript compilation.

This package generates a Webpack config object that will compile JavaScript for use in Flarum. Example usage:

// 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').