Browse Source

HMR Actually working!

feature/python-error-tracking
Drew Larson 9 years ago
parent
commit
084bf2eaa1
  1. 3
      bikeshop_project/.babelrc
  2. 10
      bikeshop_project/package.json
  3. 6
      bikeshop_project/webpack.dev.config.js

3
bikeshop_project/.babelrc

@ -0,0 +1,3 @@
{
presets: ['es2015', 'stage-0', 'react']
}

10
bikeshop_project/package.json

@ -4,8 +4,10 @@
"description": "A membership management app for the BCBC.", "description": "A membership management app for the BCBC.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "build": "webpack --config webpack.config.js --progress --colors",
}, "build-production": "webpack --config webpack.prod.config.js --progress --colors",
"watch": "node server.js"
},
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
@ -28,12 +30,14 @@
"react": "^15.1.0", "react": "^15.1.0",
"react-addons-css-transition-group": "^15.1.0", "react-addons-css-transition-group": "^15.1.0",
"react-dom": "^15.1.0", "react-dom": "^15.1.0",
"react-hot-loader": "^1.3.0",
"react-tap-event-plugin": "^1.0.0", "react-tap-event-plugin": "^1.0.0",
"react-toolbox": "^0.16.2", "react-toolbox": "^0.16.2",
"sass-loader": "^3.2.0", "sass-loader": "^3.2.0",
"style-loader": "^0.13.1", "style-loader": "^0.13.1",
"toolbox-loader": "0.0.3", "toolbox-loader": "0.0.3",
"webpack": "^1.13.1", "webpack": "^1.13.1",
"webpack-bundle-tracker": "0.0.93" "webpack-bundle-tracker": "0.0.93",
"webpack-dev-server": "^1.14.1"
} }
} }

6
bikeshop_project/webpack.dev.config.js

@ -28,10 +28,8 @@ config.module.loaders.push(
{ {
test: /\.jsx?$/, test: /\.jsx?$/,
exclude: /node_modules/, exclude: /node_modules/,
loader: 'babel-loader', loaders: ['react-hot','babel-loader']
query: {
presets: ['es2015', 'stage-0', 'react']
}
}, },
{ {
test: /(\.scss|\.css)$/, test: /(\.scss|\.css)$/,

Loading…
Cancel
Save