代码拉取完成,页面将自动刷新
var webpack = require('webpack');
path = require('path');
module.exports = {
entry: {
//add [] to fix: Module not found: Error: a dependency to an entry point is not allowed
'./sdk/dist/websdk-1.4.13': ['./sdk/index'],
'./demo/javascript/dist/demo-1.4.13': ['./demo/javascript/src/entry'],
'./webrtc/dist/webrtc-1.4.13': ['./webrtc/src/entry']
},
output: {
path: './',
publicPath: './',
filename: '[name].js'
},
// devtool: '#eval-cheap-module-source-map',
resolve: {
extensions: ['', '.js', '.jsx']
},
module: {
loaders: [
{
test: /\.(js|jsx)$/,
loader: 'babel-loader',
exclude: /node_modules/,
},
{
test: /\.scss$/,
loader: 'style-loader!css-loader!sass-loader'
},
{
test: /\.svg|woff|eot|ttf$/,
loader: require.resolve('file-loader') + '?name=[path][name].[ext]'
}
]
},
plugins: [
// new webpack.NoErrorsPlugin(),
// production must be with `UglifyJsPlugin` or ie9 crash
// faster your app better use
// https://github.com/facebook/react/issues/7803
// new webpack.DefinePlugin({
// 'process.env': {
// 'NODE_ENV': '"production"'
// }
// }),
// new webpack.optimize.UglifyJsPlugin({
// compressor: {
// warnings: false
// }
// })
],
}
;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。