Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Salar Rahmanian
    @softinio
    @frague59 great question I am trying to figure our the same hope someone here can help
    konoufo
    @konoufo
    It's pretty straight forward, there is an entry property in you webpack config. That's where you list all the files webpack bundles.
    konoufo
    @konoufo
    @frague59 Do you have static files in those django apps that you need to bundle ? If so you'll have to put those paths as well inside the entry property. To know what entryexpects see https://webpack.js.org/concepts/entry-points/
    Salar Rahmanian
    @softinio
    @konoufo do I have to list each file one by one or can I list directories?
    assume in addition to that need to add the appropriate loader like if its css files i need to add the css loader ?
    konoufo
    @konoufo
    @softinio You can't just list a directory unless you have an index.js file there that requires everything you need in that directory. But you could also use glob to do something like this:
    var glob = require("glob");
    // ...
    entry: glob.sync("./myfolder/**")
    Salar Rahmanian
    @softinio
    @konoufo thx for info
    Salar Rahmanian
    @softinio
    in my webpack config I am importing the css files I want included in the bundle by importing them in the entrypoint index.js file
    in my django template how do I access the different css files?
    ie how do I have the css files included
    I have added this to my template head: {% render_bundle 'main' 'css' %}
    but nothing appears
    any help really appreciate as clearly I am doing something wrong :-)
    konoufo
    @konoufo
    Did you actually build ? @softinio
    Salar Rahmanian
    @softinio
    yes
    Salar Rahmanian
    @softinio
    I have tried adding the css to entrypoint and as imports in the index.js file and neither work for me :(
    @konoufo
    ^^
    really appreciate your help
    konoufo
    @konoufo
    hum ok. can you upload you webpack-stats.json and webpack.config.js somewhere ?
    and put links here @softinio
    we help each others out :smile:
    Wojciech Niedźwiedź
    @Niedzwiedzw
    oh
    it's dead
    Pavel Tyurikov
    @paveltyurikov
    Hi, I was using webpack_loader with create-react-app configs and works fine with webpack 3. Now when I want to update to create-react-app 2.0.3 with webpack 4 it won't work :(
    Eray Erdin
    @erayerdin
    Hi everybody, I've seen this project supports Django>=1.6, which, to me, appeared too broad considering that we have 1.10, 1.11, 2.2 and 3.0 releases here. So, my question is, does it support Django 2.2?