Browse Source

fix svg linting build issue

Kyle Belfort 5 years ago
parent
commit
98b4044677

+ 6 - 0
Tools/Gulp/helpers/gulp-validateImports.js

@@ -17,6 +17,12 @@ config.modules.forEach(moduleName => {
 
 var validatePath = function(fileLocation, directory, module, lineNumber, errors, isExport) {
     let expressionType = isExport ? "Export" : "Import";
+
+    //Not checking svg files
+    if(module.endsWith(".svg")){
+        return;
+    }
+
     let internalModulePath = path.join(directory, module + ".ts");
 
     // Check .ts path.

+ 2 - 2
nodeEditor/src/components/preview/previewMeshControlComponent.tsx

@@ -6,10 +6,10 @@ import { PreviewMeshType } from './previewMeshType';
 import { DataStorage } from '../../dataStorage';
 import { OptionsLineComponent } from '../../sharedComponents/optionsLineComponent';
 import * as ReactDOM from 'react-dom';
-import PopUpIcon from './svgs/popOut.svg'
+import PopUpIcon from './svgs/popOut.svg';
 import ColorPicker from './svgs/colorPicker.svg';
 import PauseIcon from './svgs/pauseIcon.svg';
-import PlayIcon from './svgs/playIcon.svg'
+import PlayIcon from './svgs/playIcon.svg';
 
 interface IPreviewMeshControlComponent {
     globalState: GlobalState;