mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
ef95209c32
Updated dist build.
36 lines
818 B
JavaScript
36 lines
818 B
JavaScript
'use strict';
|
|
|
|
const webpack = require('webpack');
|
|
const WebpackShellPlugin = require('webpack-shell-plugin');
|
|
|
|
module.exports = {
|
|
|
|
context: `${__dirname}/src/`,
|
|
|
|
entry: {
|
|
phaser: './phaser.js'
|
|
},
|
|
|
|
output: {
|
|
path: `${__dirname}/dist/`,
|
|
filename: '[name].js',
|
|
library: 'Phaser',
|
|
libraryTarget: 'umd',
|
|
sourceMapFilename: '[file].map',
|
|
devtoolModuleFilenameTemplate: "webpack:///[resource-path]", // string
|
|
devtoolFallbackModuleFilenameTemplate: "webpack:///[resource-path]?[hash]", // string
|
|
umdNamedDefine: true,
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new WebpackShellPlugin({
|
|
onBuildStart: 'node create-checksum.js',
|
|
onBuildEnd: 'node copy-to-examples.js'
|
|
})
|
|
|
|
],
|
|
|
|
devtool: 'inline-source-map'
|
|
|
|
};
|