Skip to content

Commit

Permalink
about to start #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Travmatth committed Nov 19, 2016
1 parent 3e0fe40 commit 778970c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"description": "A resume website",
"main": "index.js",
"scripts": {
"build": "webpack --config tools/webpack.config.dev.js --progress --display-chunks --display-reasons --display-error-details --display-modules",
"start": "webpack-dev-server --config tools/webpack.config.dev.js --hot --inline --content-base dist/ --color",
"build:prod": "NODE_ENV=production webpack --config tools/webpack.config.prod.js --progress --display-chunks --display-reasons --display-error-details --display-modules",
"build:dev": "NODE_ENV=development webpack --config tools/webpack.config.dev.js --progress --display-chunks --display-reasons --display-error-details --display-modules",
"start": "NODE_ENV=development webpack-dev-server --config tools/webpack.config.dev.js --hot --inline --content-base dist/ --color",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
document.addEventListener('DOMContentLoaded', function () {
console.log('what');
console.log('index.js');
});
3 changes: 1 addition & 2 deletions tools/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ var paths = {

module.exports = {
PATHS: paths,
pathTo: function() {
},
pathTo: function() {},
resolveExtensions: ['', '.js'],
}
5 changes: 1 addition & 4 deletions tools/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ module.exports = validate({
// Write out stats file to build directory.
new StatsWriterPlugin(),
new HtmlWebpackPlugin(),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('development'),
'__DEV__': true
}),
// new webpack.DefinePlugin(),
],
})

0 comments on commit 778970c

Please # to comment.