-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include Vendor presets on Lw.materials #3
Labels
Comments
ghost
added
the
enhancement
label
Jul 14, 2017
@tbfleming is there a way to load a file with webpack on runtime? I'm pondering two ways to load vendor material database:
|
webpack 2 has support for dynamic const context = 'vendor-prefix-name';
import(`./path/to/${context}.json`)
.then(json => {
// Further processing
}); |
Thank you!!
El 15 jul. 2017 9:44 a. m., "Cheton Wu" <[email protected]> escribió:
… webpack 2 has support for dynamic import(), you can import file on
runtime as below:
const context = 'vendor-prefix-name';
import(`./path/to/${context}.json`)
.then(json => {
// Further processing
});
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABoIYC8fczA47JJpZU8fqswd0LgA5_Fjks5sOG3HgaJpZM4OX8k9>
.
|
jorgerobles
added a commit
to LaserWeb/LaserWeb4
that referenced
this issue
Jul 15, 2017
@Domenic-D Done (http://recordit.co/VGkKd166W0) I will go for webpack2 approach later (have to migrate from WP1). |
Looks to be working correctly in OSX. Can't compile to check on Win at the moment. |
jorgerobles
pushed a commit
that referenced
this issue
Sep 17, 2017
Adding leather. Adding anodised aluminum - no cut operation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To allow vendor's specific material databases to be applied when a vendor is selected.
The text was updated successfully, but these errors were encountered: