-
Notifications
You must be signed in to change notification settings - Fork 15
Installation
Esteban Arango Medina edited this page Jun 21, 2018
·
5 revisions
ember install ember-cli-concat
Replace the <script>
and <link rel="stylesheet">
tags for vendor
and app-name
in your app
s index.html file with {{content-for 'concat-js'}}
and {{content-for 'concat-css'}}
, respectively:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Dummy</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{content-for 'head'}}
{{content-for 'concat-css'}}{{!--Added instead of styles--}}
{{content-for 'head-footer'}}
</head>
<body>
{{content-for 'body'}}
{{content-for 'concat-js'}}{{!--Added instead of scripts--}}
{{content-for 'body-footer'}}
</body>
</html>
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
emberCliConcat: {
js: {
concat: true
},
css: {
concat: true
}
}
});
return app.toTree();
};
This addon will add the necessary tags depending on your options setup.
Please note, you should not change the template located at tests/index.html
.