1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 13:19:43 +02:00

Fingerprint during Ember build

This commit is contained in:
HarveyKandola 2021-09-07 20:18:30 -04:00
parent e19c4ad18a
commit eea8db9288
6 changed files with 47 additions and 36 deletions

View file

@ -7,48 +7,51 @@ let isDevelopment = EmberApp.env() === 'development';
module.exports = function(defaults) {
let app = new EmberApp(defaults, {
fingerprint: {
enabled: true,
generateAssetMap: true,
fingerprintAssetMap: false,
prepend: '/',
extensions: ['js', 'css'],
exclude: ['tinymce/**', 'codemirror/**', 'prism/**', 'pdfjs/**']
},
minifyCSS: {
enabled: !isDevelopment,
options: {
exclude: ['tinymce/**', 'codemirror/**', 'prism/**', 'pdfjs/**']
}
},
outputPaths: {
app: {
css: {
'app': '/assets/documize.css',
'themes/conference': '/assets/theme-conference.css',
'themes/forest': '/assets/theme-forest.css',
'themes/brave': '/assets/theme-brave.css',
'themes/harvest': '/assets/theme-harvest.css',
'themes/sunflower': '/assets/theme-sunflower.css',
'themes/silver': '/assets/theme-silver.css',
}
}
},
'ember-cli-terser': {
enabled: !isDevelopment,
exclude: ['tinymce/**', 'codemirror/**', 'prism/**', 'pdfjs/**'],
hiddenSourceMap: true,
fingerprint: {
enabled: true,
generateAssetMap: true,
fingerprintAssetMap: true,
prepend: '/',
extensions: ['js', 'css'],
exclude: ['tinymce/**', 'codemirror/**', 'prism/**', 'pdfjs/**']
terser: {
},
minifyJS: {
enabled: !isDevelopment,
options: {
exclude: ['tinymce/**', 'codemirror/**', 'prism/**', 'pdfjs/**']
}
},
minifyCSS: {
enabled: !isDevelopment,
options: {
exclude: ['tinymce/**', 'codemirror/**', 'prism/**', 'pdfjs/**']
}
},
outputPaths: {
app: {
css: {
'app': '/assets/documize.css',
'themes/conference': '/assets/theme-conference.css',
'themes/forest': '/assets/theme-forest.css',
'themes/brave': '/assets/theme-brave.css',
'themes/harvest': '/assets/theme-harvest.css',
'themes/sunflower': '/assets/theme-sunflower.css',
'themes/silver': '/assets/theme-silver.css',
}
}
}
// minifyJS: {
// enabled: !isDevelopment,
// options: {
// exclude: ['tinymce/**', 'codemirror/**', 'prism/**', 'pdfjs/**']
// }
// },
},
});