-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8b1c73
commit 940d345
Showing
7 changed files
with
9,842 additions
and
1,018 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,6 @@ src/components/old | |
src/components/old/ | ||
ignore | ||
.vscode/* | ||
*.vscode* | ||
*bundle.sh* | ||
*.LICENSE* |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
/*jshint esversion: 8*/ | ||
const path = require('path'); | ||
//const HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
const webpack = require('webpack'); | ||
const TerserPlugin = require('terser-webpack-plugin'); | ||
//var AppCachePlugin = require('appcache-webpack-plugin'); | ||
//const CompressionPlugin = require('compression-webpack-plugin'); | ||
//var HardSourceWebpackPlugin = require('hard-source-webpack-plugin'); | ||
|
||
module.exports = { | ||
mode: 'production', | ||
entry: { | ||
'SuperQuest.full': path.join(__dirname, 'index'), | ||
'SuperQuest.slim': path.join(__dirname, 'index'), | ||
'SuperQuest.standalone': path.join(__dirname, 'index'), | ||
}, | ||
output: { | ||
path: __dirname + '/dist', | ||
filename: '[name].min.js', | ||
//chunkFilename: 'js/vendor/[name].js' | ||
}, | ||
module: { | ||
rules: [{ | ||
test: /.jsx?$/, | ||
include: [ | ||
path.resolve(__dirname, 'src') | ||
], | ||
exclude: [ | ||
path.resolve(__dirname, 'node_modules') | ||
], | ||
loader: 'babel-loader', | ||
query: { | ||
presets: [ | ||
['@babel/env', { | ||
'targets': { | ||
'browsers': 'last 2 chrome versions' | ||
} | ||
}] | ||
] | ||
} | ||
}, | ||
{ | ||
test: /\.worker\.js$/, | ||
use: { | ||
loader: 'worker-loader', | ||
options: { | ||
inline: true, | ||
fallback: true, | ||
name: '[name].[hash].js' | ||
} | ||
}, | ||
}, | ||
] | ||
}, | ||
plugins: [ | ||
|
||
], | ||
resolve: { | ||
extensions: ['.json', '.js', '.jsx'] | ||
}, | ||
optimization: { | ||
minimizer: [ | ||
new TerserPlugin({ | ||
extractComments: 'all', | ||
//exclude: /[\\/]angular[\\/]/, adb pull This PC\Quest\Internal shared storage\Oculus\VideoShots\com.oculus.vrshell-20190920-054804.mp4 C:\Users\ppinh\Desktop | ||
// parallel: true, | ||
terserOptions: { | ||
drop_console: false, | ||
ecma: undefined, | ||
warnings: false, | ||
parse: {}, | ||
compress: {}, | ||
mangle: true, // Note `mangle.properties` is `false` by default. | ||
module: true, | ||
output: null, | ||
toplevel: false, | ||
nameCache: null, | ||
ie8: false, | ||
keep_classnames: undefined, | ||
keep_fnames: false, | ||
safari10: false, | ||
}, | ||
test: /\.js(\?.*)?$/i, | ||
}), | ||
], | ||
} | ||
}; |