403Webshell
Server IP : 157.230.181.24  /  Your IP : 216.73.217.11
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux conductive 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64
User :  ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/vhosts/untold/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/untold/webpack.prod.config.js
const webpack           = require("webpack");
const path              = require('path');
const nodeModulesPath   = path.resolve(__dirname, 'node_modules');
const ExtractTextPlugin = require('extract-text-webpack-plugin');

module.exports = {
	entry: path.resolve(__dirname, 'resources/assets/js/'),

	resolve: {
		modules   : [
			"resources/assets/js/",
			"resources/assets/models/",
			"resources/assets/shaders/",
			"resources/assets/scss",
			"resources/assets/views/",
			"node_modules"
		],
		extensions: ['.js', '.json', '.svg', '.njk', '.vert', '.frag']
	},

	externals: {
		'three': 'THREE'
	},

	module: {
		rules: [
			/* Compile es6 to es5 */
			{
				test   : /\.(js)$/,
				exclude: /node_modules/,
				use    : [
					{
						loader: 'babel-loader',
						query : {
							presets: ['babili', ["env", {
								"targets": {
									"chrome"  : 52,
									"browsers": ["last 2 versions", "safari 10"]
								}
							}]],
							plugins: [
								'syntax-dynamic-import',
								'transform-es2015-shorthand-properties',
								'syntax-async-functions',
								'transform-regenerator'
							]
						}
					}
				]
			},
			/* sass files */
			{
				test: /\.scss$/,
				use : ExtractTextPlugin.extract({
					fallback: 'style-loader',
					//resolve-url-loader may be chained before sass-loader if necessary
					use     : ['css-loader', 'sass-loader']
				})
			},
			/* Compile Nunjucs Templates */
			{
				test: /\.(njk|nunjucks)$/,
				use : [
					{ loader: 'nunjucks-loader' }
				]
			},
			/* SVG */
			{
				test: /\.svg$/,
				use : [
					{ loader: 'svg-inline-loader' }
				]
			},
			/* Shaders */
			{
				test   : /\.(glsl|frag|vert)$/,
				loader : 'raw-loader!glslify-loader',
				exclude: [nodeModulesPath],
			},
			/* move fonts to public folder */
			{
				test   : /\.(woff)$/,
				loader : 'url-loader',
				options: {
					// Limit at 50k. Above that it emits separate files
					limit: 50000,

					// url-loader sets mimetype if it's passed.
					// Without this it derives it from the file extension
					mimetype: 'application/font-woff',

					// Output below fonts directory
					name: path.resolve(__dirname, 'htdocs/content/themes/untold/dist/fonts/[name].[ext]')
				},
			},
		]
	},

	output: {
		path    : path.resolve(__dirname, 'htdocs/content/themes/untold/dist'),
		filename: 'bundle.js'
	},

	plugins: [
		new ExtractTextPlugin('style.css'),
		new webpack.optimize.UglifyJsPlugin({
			minimize: true,
			compress: { warnings: false }
		}),
	]
};

Youez - 2016 - github.com/yon3zu
LinuXploit