R
R
Roman Romanovich2016-08-08 11:55:56
JavaScript
Roman Romanovich, 2016-08-08 11:55:56

When concatenating require.js modules into one error?

Good afternoon!
I use require.js
I want to optimize the plug-in js for production, I use r.js for this,
the optimization config itself

({
    appDir: "../",
    baseUrl: "new/javascript/modules",
    dir: "../dist",
    mainConfigFile: "../main.js",
    name: "main"
})

and reqiure.js modules configuration
when running the build command node r.js -o app.build.js
, an error occurs
Error: Error: toString failed
    at Buffer.toString (buffer.js:377:11)

Can you help me figure out what could be the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question