1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-12 17:26:17 +00:00
This commit is contained in:
Rokt33r
2015-12-30 14:19:01 +09:00
parent f80a1a5f6b
commit f9d41de8f1
3 changed files with 13 additions and 32 deletions

View File

@@ -1,20 +1,8 @@
{
"stage": 0,
"presets": ["react", "es2015"],
"env": {
"development": {
"plugins": ["react-transform"],
"extra": {
"react-transform": {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}, {
"transform": "react-transform-catch-errors",
"imports": ["react", "redbox-react"]
}]
}
}
"presets": ["react-hmre"]
}
}
}

View File

@@ -45,23 +45,25 @@
"superagent-promise": "^1.0.3"
},
"devDependencies": {
"babel-loader": "^5.3.2",
"babel-plugin-react-transform": "^1.1.0",
"babel-core": "^6.3.26",
"babel-loader": "^6.2.0",
"babel-plugin-react-transform": "^2.0.0",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-preset-react-hmre": "^1.0.1",
"css-loader": "^0.19.0",
"electron-packager": "^5.1.0",
"electron-prebuilt": "^0.35.1",
"electron-release": "^2.2.0",
"grunt": "^0.4.5",
"grunt-electron-installer": "^1.2.0",
"history": "^1.17.0",
"nib": "^1.1.0",
"react": "^0.14.0",
"react-dom": "^0.14.0",
"react-redux": "^4.0.0",
"react": "^0.14.3",
"react-dom": "^0.14.3",
"react-redux": "^4.0.6",
"react-router": "^1.0.0-rc1",
"react-transform-catch-errors": "^1.0.0",
"react-transform-hmr": "^1.0.1",
"redbox-react": "^1.2.0",
"redux": "^3.0.2",
"redux": "^3.0.5",
"standard": "^5.3.1",
"style-loader": "^0.12.4",
"stylus": "^0.52.4",

View File

@@ -1,8 +1,6 @@
const skeleton = require('./webpack-skeleton')
const webpack = require('webpack')
const path = require('path')
const JsonpTemplatePlugin = webpack.JsonpTemplatePlugin
const FunctionModulePlugin = require('webpack/lib/FunctionModulePlugin')
var config = Object.assign({}, skeleton, {
module: {
@@ -30,12 +28,5 @@ var config = Object.assign({}, skeleton, {
devtool: 'eval-source-map'
})
config.target = function renderer (compiler) {
compiler.apply(
new JsonpTemplatePlugin(config.output),
new FunctionModulePlugin(config.output)
)
}
module.exports = config