mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Fixed svg titles appearing in tests
Refs 038600c350
- In the reference commit I update config so that svg titles are only removed in production. This causes them to show in tests which causes tests to fail. Config has now been updated to only include svg titles in development.
This commit is contained in:
parent
2a198c367e
commit
bef49576ba
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ const Terser = require('broccoli-terser-sourcemap');
|
|||
const Funnel = require('broccoli-funnel');
|
||||
const webpack = require('webpack');
|
||||
const environment = EmberApp.env();
|
||||
const isDevelopment = environment === 'development';
|
||||
const isProduction = environment === 'production';
|
||||
const isTesting = environment === 'test';
|
||||
|
||||
|
@ -206,7 +207,7 @@ module.exports = function (defaults) {
|
|||
{prefixIds: true},
|
||||
{cleanupIds: false},
|
||||
{removeDimensions: true},
|
||||
{removeTitle: isProduction},
|
||||
{removeTitle: !isDevelopment},
|
||||
{removeXMLNS: true},
|
||||
// Transforms on groups are necessary to work around Firefox
|
||||
// not supporting transform-origin on line/path elements.
|
||||
|
|
Loading…
Add table
Reference in a new issue