« All deprecation guides

Deprecation Guide for outputPaths build option

until: 6.0.0
id: ember-cli.outputPaths-build-option

Using the outputPaths build option is deprecated, as output paths will no longer be predetermined under Embroider.

To resolve the deprecation, please remove the outputPaths build option from your ember-cli-build.js file:

module.exports = function (defaults) {
  const app = new EmberApp(defaults, {
-   outputPaths: {
-     app: {
-       js: `/assets/foo.js`,
-     },
-   },
  };
};

And update your app/index.html file accordingly:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>MyAppName</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    {{content-for "head"}}

    <link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor-21c03ba88f332d9320a80ca50d93f25e.css">
    <link integrity="" rel="stylesheet" href="{{rootURL}}assets/my-app-name.css">

    {{content-for "head-footer"}}
  </head>
  <body>
    {{content-for "body"}}

    <script src="{{rootURL}}assets/vendor-44ac0d6457a4f0e441f1ce33d87c38e2.js"></script>
-   <script src="{{rootURL}}assets/foo.js"></script>
+   <script src="{{rootURL}}assets/my-app-name.js"></script>

    {{content-for "body-footer"}}
  </body>
</html>