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 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 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...
I'm interested in using a Javascript loader and want to use one which plays nicely with jQuery.  I found this comparison table: https://spreadsheets.google.com/lv?key=tDdcrv9wNQRCNCRCflWxhYQ  However, I'd like to get a recommendation from som...
I have page structure as bellow:  <head>   <style>     .windows8 {       position: relative;       width: 78px;       height:78px;       margin:auto;       margin-top: 200px;     }      .windows8 .wBall {       position: absolute;       w...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.