mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 11:33:49 +01:00
Assumming package user configured loaders
This commit is contained in:
parent
cfcd839baa
commit
02b1f080fb
17
src/index.js
17
src/index.js
@ -1,15 +1,14 @@
|
|||||||
import Slicer from './Slicer.js';
|
import Slicer from './Slicer.js';
|
||||||
import baseSettings from './settings/default.yml!text';
|
import baseSettings from './settings/default.yml';
|
||||||
import printerSettings from './settings/printer.yml!text';
|
import printerSettings from './settings/printer.yml';
|
||||||
import materialSettings from './settings/material.yml!text';
|
import materialSettings from './settings/material.yml';
|
||||||
import qualitySettings from './settings/quality.yml!text';
|
import qualitySettings from './settings/quality.yml';
|
||||||
import yaml from 'js-yaml';
|
|
||||||
|
|
||||||
const defaultSettings = {
|
const defaultSettings = {
|
||||||
base: yaml.safeLoad(baseSettings),
|
base: baseSettings,
|
||||||
printer: yaml.safeLoad(printerSettings),
|
printer: printerSettings,
|
||||||
material: yaml.safeLoad(materialSettings),
|
material: materialSettings,
|
||||||
quality: yaml.safeLoad(qualitySettings)
|
quality: qualitySettings
|
||||||
};
|
};
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
Loading…
Reference in New Issue
Block a user