forked from enhavo/enhavo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
26 lines (23 loc) · 947 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const EnhavoEncore = require('./assets/node_modules/@enhavo/core/EnhavoEncore');
const EnhavoThemeEncore = require('./assets/node_modules/@enhavo/theme/encore/EnhavoThemeEncore');
const ThemeLoader = require('./assets/node_modules/@enhavo/theme/encore/ThemeLoader');
const AppPackage = require('./assets/node_modules/@enhavo/app/encore/AppPackage');
const FormPackage = require('./assets/node_modules/@enhavo/form/encore/FormPackage');
const ApiPackage = require('./assets/node_modules/@enhavo/api/encore/ApiPackage');
EnhavoEncore.add(
'enhavo',
[
new AppPackage(),
new ApiPackage(),
new FormPackage(),
],
Encore => {},
config => {
// Enable watch in enhavo assets/node_modules/@enhavo
config.watchOptions = {
ignored: /node_modules([\\]+|\/)+(?!@enhavo)/
}
}
);
EnhavoThemeEncore.addThemes(EnhavoEncore, ThemeLoader);
module.exports = EnhavoEncore.export();