Hi,
I’m trying to use the npm package parallax.js in my app. This module is requiring css directly from its source code :
require("./styles.css");
I can’t manage to bundle it in my vendor bundle. Here is what I did in my aurelia.json :
{
"name": "parallax.js",
"path": "../node_modules/parallax.js",
"main": "main.js",
"resources": [
"styles.css"
]
},
But I still get an error at building time like these :
Location: /dev/path/test/node_modules/parallax.js/styles.css.js Requested by: \dev\path\test\node_modules\parallax.js\main.js Is this a package? Make sure that it is configured in aurelia.json and that it is not a Node.js package
I found this issue : https://github.com/aurelia/cli/issues/273 but can’t really do anything on the module sources, and really don’t want to fork it for that.
There must be a way to handle that with au-cli isn’t it?