Skip to content

Instantly share code, notes, and snippets.

@OrderAndCh4oS
Created January 4, 2018 11:22
Show Gist options
  • Save OrderAndCh4oS/2cd25f31be20fd54de4d54754e2bf920 to your computer and use it in GitHub Desktop.
Save OrderAndCh4oS/2cd25f31be20fd54de4d54754e2bf920 to your computer and use it in GitHub Desktop.
Webpack Simple ES6 + Lodash
const path = require('path');
module.exports = {
entry: './src/index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist')
},
module: {
rules: [
{ test: /\.js$/, exclude: /node_modules/, loader: "babel-loader" }
]
}
};
{
"name": "Webpack-Simple",
"version": "1.0.0",
"description": "Compiles ES6",
"main": "index.js",
"scripts": {
"build": "webpack",
"watch": "webpack --watch"
},
"keywords": [],
"author": "",
"license": "MIT",
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.6.1",
"webpack": "^3.10.0"
},
"dependencies": {
"lodash": "^4.17.4"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment