I am wondering how to set up an inline svg with webpack?   I am following the react-webpack-cookbook.   I have my webpack.config set up correctly with the file loader.   However the example shows using a background image like this:   .icon {    backg...
On compiling an app and trying to implement the i18n library with webpack, I face this error:  ERROR in ./node_modules/bundle-loader?lazy&name=lang-pt!./src/locales/pt/translation.json Module parse failed: Unexpected token m in JSON at position 0...
I'm writing an application that is designed to be used as part of a mechanical design and simulation workflow, and we'd like to be able to use Three.js to load and visualize parts designed in Solidworks, which can be exported as STL (text or...
I have a pair of requirejs plugins, that I'd like to replace with a webpack loader.  define('firstLoader', {   load: function (name, parentRequire, onload, config) {     var xhr = new XMLHttpRequest();      xhr.addEventListener('load&...
I'm brand new to Webpack and have been playing around with the css-loader. On the Github page under "Local Scope" there's information about specifying a localIdentName query tag with your own custom values like: [path][name]---[local]...
I am trying to show a loader GIF image in the div section of this html page. But I can't get it to work. The div content is hidden and the GIF image disappears.  CSS:  .loader {     background-image: url(image/Preloader_8.gif);     background-rep...
I'm writing a library using handlebars templates and I want to use Webpack to bundle it. I'm using handlebars-loader so that I can require and precompile the templates.  However I don't want handlebars (nor handlebars/runtime) to be inclu...
I'm trying to implement the loader animation in my react native app but it does't trigger the loader when the button is clicked, although the animating already change to true.  Check out my code below.  componentWillMount(){     this.hideLoad...
I want to load quite a lot of JSON models and put them in global variables so I can use them to copy, translate, etc. That way I won't have to load a model every time i need one.  I tried some methods but it seems loading the models happens async...
In a discussion about a tangentially related aspect of a minimal AMD loader I'm working on, James Burke wrote:     There should to be some way to kick off the resolution of modules, besides just define(). define() calls by themselves should just...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.