1 Star 0 Fork 934

lewischang/ureport

forked from youseries/ureport 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 927 Bytes
一键复制 编辑 原始数据 按行查看 历史
hulks 提交于 2017-06-05 15:44 . 初始化
/**
* Created by Jacky.gao on 2016/5/17.
*/
var webpack = require('webpack');
module.exports = {
entry: {
designer:'./src/index.js',
preview:'./src/preview.js'
},
output: {
path: '../ureport2-console/src/main/resources/asserts/js',
filename: '[name].bundle.js'
},
module: {
loaders: [
{
test: /\.(jsx|js)?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel',
query: {
presets: ['react', 'es2015'],
compact:true
}
},
{
test: /\.css$/,
loader: "style-loader!css-loader"
},
{
test: /\.(eot|woff|woff2|ttf|svg|png|jpg)$/,
loader: 'url-loader?limit=1000000&name=[name]-[hash].[ext]'
}
]
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/lewischang/ureport.git
[email protected]:lewischang/ureport.git
lewischang
ureport
ureport
master

搜索帮助