I'm submitting a ...
[X] bug report
[ ] feature request
[ ] question about the decisions made in the repository
Starting from a pristine install, I had to make a couple of modifications before I was able to successfully build and serve for production.
First, I noticed that webpack-dev-server.js was being included in index.html regardless of NODE_ENV.
To fix this, I changed:
src/index.html L56
from <% if (webpackConfig.metadata.ENV === 'development') { %>
to <% if (process.env.ENV === 'development') { %>
Next, I was having trouble getting my styles included with an EXCEPTION: Failed to load %5Bobject%20Object%5D error as seen in this SO question
For this, I changed:
src/app/app.component.ts L47
from styleUrls: [require('!style!css!sass!../sass/main.scss')],
to styles: String[require('!style!css!sass!../sass/main.scss')],
Starting from a pristine install, I had to make a couple of modifications before I was able to successfully build and serve for production.
First, I noticed that
webpack-dev-server.js
was being included inindex.html
regardless of NODE_ENV.To fix this, I changed:
src/index.html
L56 from<% if (webpackConfig.metadata.ENV === 'development') { %>
to<% if (process.env.ENV === 'development') { %>
Next, I was having trouble getting my styles included with an
EXCEPTION: Failed to load %5Bobject%20Object%5D
error as seen in this SO questionFor this, I changed:
src/app/app.component.ts
L47 fromstyleUrls: [require('!style!css!sass!../sass/main.scss')],
tostyles: String[require('!style!css!sass!../sass/main.scss')],
Please tell us about your environment:
Angular version: 2.0.0-beta.X
Browser: [all /Chrome/Firefox ]
Node 7