使用的工具:
- webpack to auto rebuild code.
- babel 6 to compile es6/7 code to es5.
- Extensions Reloader for easier reload extension
例子: https://github.com/ProjecToday/es6-chrome-extension-starter
npm scripts inside:
"scripts": {
"start": "webpack -d --watch", // continuous incremental build in development with include source maps
"build": "webpack -p" // building once for production
}
唯一的缺憾在于不能 auto reload 。不知道有没有人有办法?