Skip to content

Commit f044409

Browse files
committed
fix(paths) : Fix entry file paths
1 parent fa11748 commit f044409

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/app.js

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import users from './routes/users';
1010

1111
const app = express();
1212

13-
console.log(path.join(__dirname, '..', 'views'));
14-
1513
// view engine setup
1614
app.set('views', path.join(__dirname, '..', 'views'));
1715
app.set('view engine', 'pug');

webpack.config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
var path = require('path');
22

33
module.exports = {
4-
entry: './client/app.jsx',
4+
entry: './src/client/app.jsx',
55

66
output: {
77
filename: 'app.js',
88
path: path.join('public/javascripts/')
99
},
1010

11+
resolve: {
12+
extensions: ['', '.js', '.jsx']
13+
},
14+
1115
module: {
1216
loaders: [
1317
{

0 commit comments

Comments
 (0)