Skip to content

Instantly share code, notes, and snippets.

@uyu423
Created March 6, 2017 03:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uyu423/63edd46650a501f825421391a778fde3 to your computer and use it in GitHub Desktop.
Save uyu423/63edd46650a501f825421391a778fde3 to your computer and use it in GitHub Desktop.
simple and default webpack config js (2017.03.06, webpack 2.2.1)
const path = require('path');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'public/'),
filename: 'bundle.js',
},
devServer: {
inline: true,
port: 7777,
contentBase: path.resolve(__dirname, 'public/'),
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
cacheDirectory: true,
presets: ['es2015', 'react'],
},
},
],
},
};
@uyu423
Copy link
Author

uyu423 commented Mar 6, 2017

@majac6
Copy link

majac6 commented Mar 7, 2017

프론트엔드 개발공부도 게을리 하지 않는군요.

@uyu423
Copy link
Author

uyu423 commented Mar 7, 2017

@majac6 마자크님 안녕하세여 ㅎㅎㅎ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment