mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
Moved FB plugin to plugins folder
This commit is contained in:
parent
7765496b19
commit
618754b411
8 changed files with 53 additions and 2 deletions
4
plugins/fbinstant/readme.md
Normal file
4
plugins/fbinstant/readme.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
Phaser 3 Facebook Instant Games Plugin
|
||||
======================================
|
||||
|
||||
This is a work-in-progress FB Instant Games plugin and will be released fully with Phaser 3.13.
|
|
@ -7,8 +7,8 @@
|
|||
*/
|
||||
|
||||
var AdInstance = require('./AdInstance');
|
||||
var Class = require('../utils/Class');
|
||||
var DataManager = require('../data/DataManager');
|
||||
var Class = require('../../../src/utils/Class');
|
||||
var DataManager = require('../../../src/data/DataManager');
|
||||
var EventEmitter = require('eventemitter3');
|
||||
var Leaderboard = require('./Leaderboard');
|
||||
var Product = require('./Product');
|
47
plugins/fbinstant/webpack.config.js
Normal file
47
plugins/fbinstant/webpack.config.js
Normal file
|
@ -0,0 +1,47 @@
|
|||
'use strict';
|
||||
|
||||
const webpack = require('webpack');
|
||||
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
||||
const CleanWebpackPlugin = require('clean-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
|
||||
context: `${__dirname}/src/`,
|
||||
|
||||
entry: {
|
||||
camera3d: './FacebookInstantGamesPlugin.js',
|
||||
'camera3d.min': './FacebookInstantGamesPlugin.js'
|
||||
},
|
||||
|
||||
output: {
|
||||
path: `${__dirname}/dist/`,
|
||||
filename: '[name].js',
|
||||
library: 'FacebookInstantGamesPlugin',
|
||||
libraryTarget: 'var'
|
||||
},
|
||||
|
||||
performance: { hints: false },
|
||||
|
||||
optimization: {
|
||||
minimizer: [
|
||||
new UglifyJSPlugin({
|
||||
include: /\.min\.js$/,
|
||||
parallel: true,
|
||||
sourceMap: false,
|
||||
uglifyOptions: {
|
||||
compress: true,
|
||||
ie8: false,
|
||||
ecma: 5,
|
||||
output: {comments: false},
|
||||
warnings: false
|
||||
},
|
||||
warningsFilter: () => false
|
||||
})
|
||||
]
|
||||
},
|
||||
|
||||
plugins: [
|
||||
new CleanWebpackPlugin([ 'dist' ])
|
||||
]
|
||||
};
|
Loading…
Reference in a new issue