Skip to content

How to use the loader  #5

Description

@mi-skam

Hi,
I have trouble understanding the use of the loader. I am quite new to webpack and thus unsure how to combine "aframe-super-hot-html-loader" with the rest of my mi-skam/aframe-template/webpack.common.js and mi-skam/aframe-template/webpack.dev.js.

I simply start with webpack --config webpack.prod.js which merges webpack.common.js and the goal of my webpack config is to create a dist folder with assets and a matching index.html, unfortunately as of now I don't know how to bundle aframe without getting a "missing window object" and worse than that. I get some JS Code by the hot loader inserted into the html, like here https://pastebin.com/ZX52L9r6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions