Update to webpack 2.x
This commit is contained in:
committed by
József Farkas
parent
908c7e1e8c
commit
67c8b12eac
@@ -37,8 +37,8 @@ export class KeypressTabComponent extends Tab implements OnChanges {
|
||||
id: '0',
|
||||
text: 'None'
|
||||
}];
|
||||
this.scanCodeGroups = this.scanCodeGroups.concat(require('json!./scancodes.json'));
|
||||
this.longPressGroups = require('json!./longPress.json');
|
||||
this.scanCodeGroups = this.scanCodeGroups.concat(require('json-loader!./scancodes.json'));
|
||||
this.longPressGroups = require('json-loader!./longPress.json');
|
||||
this.leftModifierSelects = Array(this.leftModifiers.length).fill(false);
|
||||
this.rightModifierSelects = Array(this.rightModifiers.length).fill(false);
|
||||
this.scanCode = 0;
|
||||
|
||||
@@ -69,7 +69,7 @@ export class SvgKeyboardComponent implements OnInit {
|
||||
}
|
||||
|
||||
private getBaseLayer(): any {
|
||||
return require('xml!../../../../../images/base-layer.svg').svg;
|
||||
return require('xml-loader!../../../../../images/base-layer.svg').svg;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -54,8 +54,8 @@ export class DataStorage {
|
||||
|
||||
initUHKJson() {
|
||||
this.defaultUserConfiguration = new UserConfiguration()
|
||||
.fromJsonObject(require('json!../../config-serializer/user-config.json'));
|
||||
this.uhkPresets = (<any[]>require('json!../../config-serializer/preset-keymaps.json'))
|
||||
.fromJsonObject(require('json-loader!../../config-serializer/user-config.json'));
|
||||
this.uhkPresets = (<any[]>require('json-loader!../../config-serializer/preset-keymaps.json'))
|
||||
.map(keymap => new Keymap().fromJsonObject(keymap));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user