Created
October 3, 2016 14:19
-
-
Save iamshaunjp/a1c8fb653ddd5d27c3e38ab55e3c0a44 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path'); | |
module.exports = { | |
entry: path.resolve(__dirname, 'src') + '/app/index.js', | |
output: { | |
path: path.resolve(__dirname, 'dist') + '/app', | |
filename: 'bundle.js', | |
publicPath: '/app/' | |
}, | |
module: { | |
loaders: [ | |
{ | |
test: /\.js$/, | |
include: path.resolve(__dirname, 'src'), | |
loader: 'babel-loader', | |
query: { | |
presets: ['react', 'es2015'] | |
} | |
}, | |
{ | |
test: /\.css$/, | |
loader: 'style-loader!css-loader' | |
} | |
] | |
} | |
}; |
You are the awesome man in explaining things.
You are the best!!!! Thank you so much.
Thanks Shaun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you shaun