-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathember-cli-build.js
More file actions
47 lines (39 loc) · 1.43 KB
/
ember-cli-build.js
File metadata and controls
47 lines (39 loc) · 1.43 KB
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
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const postcssImport = require('postcss-import');
const autoprefixer = require('autoprefixer');
const postcssPresetEnv = require('postcss-preset-env');
const tailwind = require('tailwindcss');
const isGithubPagesEnv = process.env.GITHUB_PAGES_ENV === 'true';
module.exports = function (defaults) {
let app = new EmberApp(defaults, {
storeConfigInMeta: false,
fingerprint: {
enabled: isGithubPagesEnv,
},
multiIndex: {
targets: [
{
outputPath: 'error.html',
},
{
outputPath: '404.html',
},
],
},
'ember-prism': {
theme: 'okaidia',
components: ['markup-templating', 'markdown', 'json', 'javascript', 'typescript', 'bash', 'php', 'python', 'ruby', 'java', 'csharp'],
plugins: ['line-highlight', 'line-numbers'],
},
snippetPaths: ['snippets'],
snippetExtensions: ['js', 'json', 'sh', 'bash', 'php', 'py', 'rb'],
postcssOptions: {
compile: {
cacheInclude: [/.*\.(css|scss|hbs)$/, /.tailwind\.js$/],
plugins: [postcssImport({ path: 'node_modules' }), autoprefixer, postcssPresetEnv({ stage: 1 }), tailwind('./tailwind.js')],
},
},
});
return app.toTree();
};