Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
Unify index across env
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Sep 13, 2016
1 parent 2e3a3b5 commit 6f9baa8
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 44 deletions.
20 changes: 0 additions & 20 deletions dist/assets/js/bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/assets/js/bundle.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/assets/js/vendor.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/assets/js/vendor.bundle.js.map

This file was deleted.

3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const webpack = require('webpack')
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true,
historyApiFallback: true
historyApiFallback: true,
contentBase: './dist'
}).listen(3000, 'localhost', function (err) {
if (err) throw err
})
6 changes: 3 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import Counter from './Counter'
export default class App extends Component {
render () {
return (
<Layout>
<Counter />
</Layout>
<Layout>
<Counter />
</Layout>
)
}
}
11 changes: 0 additions & 11 deletions src/index.html

This file was deleted.

2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if (module.hot) {
const NextApp = require('./App').default
ReactDOM.render(
<AppContainer>
<NextApp />
<NextApp />
</AppContainer>,
rootEl
)
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
'./src/index'
],
output: {
path: path.resolve('dist'),
path: path.resolve('dist/assets/js'),
filename: 'bundle.js',
publicPath: '/assets/js/'
},
Expand Down
5 changes: 2 additions & 3 deletions webpack.production.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
'use strict'

const BrowserSyncPlugin = require('browser-sync-webpack-plugin')
const pkg = require('./package.json')
const webpack = require('webpack')
const path = require('path')
const pkg = require('./package.json')

module.exports = {
devtool: 'cheap-module-source-map',
Expand All @@ -12,7 +11,7 @@ module.exports = {
],
output: {
path: path.resolve('dist/assets/js'),
filename: 'bundle.js',
filename: 'bundle.js'
},
plugins: [
new webpack.optimize.OccurrenceOrderPlugin(),
Expand Down

0 comments on commit 6f9baa8

Please sign in to comment.