27 Star 92 Fork 31

塔塔兔子/cnode-electron

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.prod.js 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
塔塔兔子 提交于 2016-04-26 15:44 . 提交cnode-electron
var webpack = require('webpack');
var path = require('path');
var nodeModulesPath = path.resolve(__dirname, 'node_modules');
module.exports = {
// entry: './js/entry.js',
entry: [
path.join(__dirname, 'app/client.jsx')
],
output: {
path: __dirname + '/',
filename: 'app.js',
publicPath: '/'
},
module: {
loaders: [
{
test: /\.jsx$/,
loaders: [
'react-hot',
'babel-loader',
],
exclude: /node_modules/,
},
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
},
{
test: /\.json$/,
loader: 'json-loader',
},
{
test: /\.txt$/,
loader: 'raw-loader',
include: path.resolve(__dirname, 'app/components/raw-code'),
},
{
test: /\.md$/,
loader: 'raw-loader',
},
{
test: /\.css$/,
loader: 'style-loader!css-loader',
},
],
},
resolve: {
extensions: ['', '.js', '.jsx']
},
eslint: {
configFile: '.eslintrc'
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
]
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/tatatu/cnode-electron.git
[email protected]:tatatu/cnode-electron.git
tatatu
cnode-electron
cnode-electron
master

搜索帮助