Starter project with angular2 and webpack
npm run clean
: clean dist folder
npm run build
: build the app
You can pass a different TARGET or MODE using the following command:
[TARGET=newtarget MODE=dev] npm run build
npm run webpack-server
: compile and open a the webpack reload browser
You can pass a different TARGET or MODE using the following command:
[TARGET=newtarget MODE=dev] npm run webpack-server
npm run browsersync
: compile and open a live reload browser
You can pass a different TARGET or MODE using the following command:
[TARGET=newtarget MODE=dev] npm run browsersync
npm run lint
: Run lint
npm run lint
npm test
: Run unit tests
npm test
- https://www.npmjs.com/package/html-webpack-plugin - DONE
- Protractor
When importing a style as a string use the .toString()
method
@Component({
selector: 'app',
styles: [require('./app.component.scss').toString()],
providers: [HeroService],
template: require('./app.component.html')
})
Can't upgrade to latest of babel-eslint
because of this: babel/babel-eslint#228