Ai
1 Star 0 Fork 0

jonathan-team/firstnode

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
webpack.config.js 700 Bytes
一键复制 编辑 原始数据 按行查看 历史
jonathan.zhang 提交于 2016-10-28 10:54 +08:00 . first commit
/**
* Created by Jonathan Zhang on 2016/10/20 0020.
*/
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: ['webpack/hot/dev-server', path.resolve(__dirname, './bin/js/counter/index.js')],
output: {
path: path.resolve(__dirname, './build'),
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.js?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel',
query: {
presets: ['es2015', 'react']
}
}
]
},
plugins: [
new webpack.HotModuleReplacementPlugin()
]
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/jonathan714/firstnode.git
git@gitee.com:jonathan714/firstnode.git
jonathan714
firstnode
firstnode
master

搜索帮助