Permalink
Browse files

Webpack

  • Loading branch information...
cazala committed Aug 7, 2016
1 parent 8eac4b5 commit 5e95fdf8103e5a75d129ef7ce3183273bac86483
Showing with 23 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +6 −1 package.json
  3. +1 −0 src/index.js
  4. +15 −0 webpack.config.js
@@ -1 +1,2 @@
node_modules
dist
@@ -4,6 +4,8 @@
"description": "javascript universal app",
"main": "index.js",
"scripts": {
"build": "webpack --config webpack.config.js",
"start": "node dist/bundle.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
@@ -12,5 +14,8 @@
"app"
],
"author": "Juan Cazala",
"license": "MIT"
"license": "MIT",
"devDependencies": {
"webpack": "^1.13.1"
}
}
@@ -0,0 +1 @@
console.log('hello world')
@@ -0,0 +1,15 @@
var webpack = require('webpack')
var path = require('path')
module.exports = {
context: __dirname,
entry: './src/index.js',
output: {
path: path.resolve('dist'),
filename: 'bundle.js',
},
plugins: [ new webpack.NoErrorsPlugin() ],
resolve: {
extensions: ['', '.js', '.json'],
modulesDirectories: ['.', 'src', 'node_modules']
}
}

0 comments on commit 5e95fdf

Please sign in to comment.