mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
As an intermediate step on the path to merging jitsi-meet and
jitsi-meet-react, import the whole source code of jitsi-meet-react as it
stands at
2f23d98424
i.e. the lastest master at the time of this import. No modifications are
applied to the imported source code in order to preserve a complete
snapshot of it in the repository of jitsi-meet and, thus, facilitate
comparison later on. Consequently, the source code of jitsi-meet and/or
jitsi-meet-react may not work. For example, jitsi-meet's jshint may be
unable to parse jitsi-meet-react's source code.
64 lines
2.0 KiB
JavaScript
64 lines
2.0 KiB
JavaScript
var WebPack = require('webpack');
|
|
var HtmlPlugin = require('html-webpack-plugin');
|
|
var HasteResolver = require('haste-resolver-webpack-plugin');
|
|
|
|
module.exports = {
|
|
output: {
|
|
filename: 'bundle.js',
|
|
path: __dirname + '/dist',
|
|
publicPath: '/'
|
|
},
|
|
cache: true,
|
|
debug: true,
|
|
devtool: 'source-map',
|
|
entry: {
|
|
app: __dirname + '/index.web.js'
|
|
},
|
|
plugins: [
|
|
new HasteResolver({
|
|
platform: 'web'
|
|
}),
|
|
new HtmlPlugin({
|
|
filename: 'index.html',
|
|
template: __dirname + '/index-template.html'
|
|
})
|
|
],
|
|
module: {
|
|
loaders: [
|
|
// Load CSS files that are required in modules.
|
|
{
|
|
test: /\.css$/,
|
|
exclude: /node_modules/,
|
|
loader: 'style-loader!css-loader',
|
|
},
|
|
// Load font files for font-awesome. It uses a trailing version
|
|
// number in the names when requiring so we have to accept them in
|
|
// our test regex.
|
|
{
|
|
test: /\.(eot|svg|ttf)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
|
|
loader: "file-loader"
|
|
},
|
|
{
|
|
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
|
|
loader: "url-loader?limit=10000&minetype=application/font-woff"
|
|
},
|
|
// Process all JavaScript files as ECMAScript2015 along with
|
|
// accepting the JSX syntax used by React.
|
|
{
|
|
test: /\.jsx?$/,
|
|
exclude: /node_modules/,
|
|
loader: 'babel-loader',
|
|
query: {
|
|
presets: ['es2015', 'react', 'stage-1']
|
|
}
|
|
},
|
|
// Disable AMD for Strophe and its plugins because we don't know how
|
|
// to require them successfully.
|
|
{
|
|
test: /\/strophe(js-plugins)?\//,
|
|
loader: 'imports?define=>false&this=>window'
|
|
}
|
|
]
|
|
}
|
|
};
|