Skip to content

Commit d900e19

Browse files
made ember-cli-build.js more in line with ilios, but with most commented out for future
1 parent 302b1ce commit d900e19

File tree

1 file changed

+32
-11
lines changed

1 file changed

+32
-11
lines changed

packages/frontend/ember-cli-build.js

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,27 @@ const EmberApp = require('ember-cli/lib/broccoli/ember-app');
55
const { Webpack } = require('@embroider/webpack');
66
// const { RetryChunkLoadPlugin } = require('webpack-retry-chunk-load-plugin');
77
// const TerserPlugin = require('terser-webpack-plugin');
8+
// const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
89

910
module.exports = async function (defaults) {
1011
const env = EmberApp.env() || 'development';
1112
const isTestBuild = env === 'test';
1213

1314
const config = {
15+
// fingerprint: {
16+
// extensions: broccoliAssetRevDefaults.extensions.concat(['webmanifest', 'svg']),
17+
// },
18+
// emberData: {
19+
// compatWith: '5.2',
20+
// },
21+
1422
hinting: isTestBuild,
1523
babel: {
1624
plugins: [
1725
require.resolve('ember-concurrency/async-arrow-task-transform'),
1826
...require('ember-cli-code-coverage').buildBabelPlugin(),
1927
],
2028
},
21-
sassOptions: {
22-
extension: 'scss',
23-
silenceDeprecations: ['mixed-decls'],
24-
},
25-
'@embroider/macros': {
26-
setConfig: {
27-
'ember-qunit': {
28-
theme: 'ember',
29-
},
30-
},
31-
},
3229
'ember-cli-image-transformer': {
3330
images: [
3431
{
@@ -45,9 +42,33 @@ module.exports = async function (defaults) {
4542
},
4643
],
4744
},
45+
'ember-cli-qunit': {
46+
useLintTree: false,
47+
},
4848
autoImport: {
49+
// insertScriptsAt: 'auto-import-scripts',
4950
watchDependencies: ['rs-common'],
5051
},
52+
// 'ember-fetch': {
53+
// preferNative: true,
54+
// },
55+
// 'ember-simple-auth': {
56+
// useSessionSetupMethod: true, //can be removed in ESA v5.x
57+
// },
58+
// minifyCSS: {
59+
// enabled: false,
60+
// },
61+
sassOptions: {
62+
extension: 'scss',
63+
silenceDeprecations: ['mixed-decls'],
64+
},
65+
'@embroider/macros': {
66+
setConfig: {
67+
'ember-qunit': {
68+
theme: 'ember',
69+
},
70+
},
71+
},
5172
};
5273

5374
const app = new EmberApp(defaults, config);

0 commit comments

Comments
 (0)