-
Notifications
You must be signed in to change notification settings - Fork 4
/
ember-cli-build.js
83 lines (78 loc) · 2.04 KB
/
ember-cli-build.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
'use strict';
/* eslint-disable */
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const webpack = require('webpack');
module.exports = async function (defaults) {
const { setConfig } = await import('@warp-drive/build-config');
const app = new EmberApp(defaults, {
autoprefixer: {
enabled: true,
cascade: true,
sourcemap: process.env.DEPLOY_ENV !== 'production',
},
sassOptions: {
extension: 'scss',
sourceMapEmbed: process.env.DEPLOY_ENV !== 'production',
includePaths: [
'node_modules/@kanselarij-vlaanderen/au-kaleidos-css/',
'node_modules/@lblod/ember-rdfa-editor/app/styles/', // as a workaround for https://github.com/ember-cli/ember-cli/issues/8026#issuecomment-420245390
'node_modules/@appuniversum/ember-appuniversum',
],
},
flatpickr: {
locales: ['nl'],
},
outputPaths: {
app: {
css: {
'styleguide': '/assets/styleguide.css'
}
}
},
'ember-simple-auth': {
useSessionSetupMethod: true,
},
'ember-cli-babel': {
includePolyfill: true,
plugins: [
'transform-object-rest-spread',
],
},
'ember-test-selectors': {
strip: false
},
//polyfill for insecure context (like cypress on jenkins) https://github.com/emberjs/data/tree/v5.0.0?tab=readme-ov-file#randomuuid-polyfill
'@embroider/macros': {
setConfig: {
'@ember-data/store': {
polyfillUUID: true,
},
},
},
autoImport: {
webpack: {
plugins: [
new webpack.ProvidePlugin({
process: 'process/browser.js',
}),
],
},
// exclude: [
// 'ember-changeset',
// ],
},
});
setConfig(app, __dirname, {
polyfillUUID: true
// WarpDrive/EmberData settings go here (if any)
});
app.import('node_modules/sanitize-filename/index.js', {
using: [
{
transformation: 'cjs',
as: 'sanitize-filename'
},
],
});
return app.toTree();
};