1 Star 0 Fork 5

a12wang1 / bloodhound-ad

forked from 德古拉 / bloodhound-ad 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.development.js 973 Bytes
一键复制 编辑 原始数据 按行查看 历史
Rohan Vazarkar 提交于 2017-05-15 14:37 . Update lots of stuff
var webpack = require('webpack');
var path = require('path')
var config = {
target: 'electron-renderer',
externals: [{
'electron-config': 'electron-config'
}],
entry: [
'webpack-hot-middleware/client?reload=true&path=http://localhost:9000/__webpack_hmr',
'./src/index',
],
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /(node_modules)/,
use: {
loader: 'babel-loader',
options: {
}
}
}
]
},
output: {
path: __dirname + '/dist',
publicPath: 'http://localhost:9000/dist/',
filename: 'bundle.js'
},
resolve: {
extensions: ['.js', '.jsx'],
alias: {
utils: path.resolve(__dirname, 'src', 'js', 'utils.js'),
modals: path.resolve(__dirname, 'src', 'components', 'Modals')
}
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
],
node: {
__dirname: false,
__filename: false
}
};
module.exports = config;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/a12wang1/bloodhound-ad.git
git@gitee.com:a12wang1/bloodhound-ad.git
a12wang1
bloodhound-ad
bloodhound-ad
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891