j-mcnally / ember-cli-chrome

A small and growing toolkit to build chrome extensions with EmberJS
62 stars 12 forks source link

ember-chrome.js not getting copied to dist #12

Closed chiefy closed 5 years ago

chiefy commented 9 years ago

Kind of a n00b when it comes to ember-cli and broccoli, but when I run ember server in my project, the manifest.json and icons are getting copied over to /dist but no ember-chrome.js?

❯ ember --version
version: 1.13.8
node: 0.12.7
npm: 2.13.4
os: darwin x64

using 0.0.8

wanglian commented 8 years ago

I ran into the same problem. The solution is that you don't need to modify the index.html according to the video tutorial.

szysza commented 8 years ago

I ran into the same issue. @wanglian can you create a gist with an example index.html?

wanglian commented 8 years ago

@przemekszyszka sorry for late, here is an example

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Phonebook</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="phonebook/config/environment" content="%7B%22modulePrefix%22%3A%22phonebook%22%2C%22environment%22%3A%22development%22%2C%22baseURL%22%3A%22/%22%2C%22locationType%22%3A%22hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%7D%2C%22APP%22%3A%7B%22name%22%3A%22phonebook%22%2C%22version%22%3A%220.0.0+15bba3bb%22%7D%2C%22contentSecurityPolicyHeader%22%3A%22Content-Security-Policy-Report-Only%22%2C%22contentSecurityPolicy%22%3A%7B%22default-src%22%3A%22%27none%27%22%2C%22script-src%22%3A%22%27self%27%20%27unsafe-eval%27%22%2C%22font-src%22%3A%22%27self%27%22%2C%22connect-src%22%3A%22%27self%27%22%2C%22img-src%22%3A%22%27self%27%22%2C%22style-src%22%3A%22%27self%27%22%2C%22media-src%22%3A%22%27self%27%22%7D%2C%22exportApplicationGlobal%22%3Atrue%7D" />
    <script src="/ember-cli-live-reload.js" type="text/javascript"></script>
    <link rel="stylesheet" href="assets/vendor.css">
    <link rel="stylesheet" href="assets/phonebook.css">
  </head>
  <body>
    <script src="assets/vendor.js"></script>
    <script src="assets/phonebook.js"></script>
  </body>
</html>