X7ROOT File Manager
Current Path:
/home/okeydcqc/public_html/wp-content/themes/oceanwp
home
/
okeydcqc
/
public_html
/
wp-content
/
themes
/
oceanwp
/
ðŸ“
..
📄
404.php
(4.56 KB)
📄
500.php
(211 B)
📄
README.md
(1.83 KB)
ðŸ“
assets
📄
babel.config.js
(42 B)
📄
changelog.md
(3.39 KB)
📄
comments.php
(5.1 KB)
📄
footer-pwa.php
(166 B)
📄
footer.php
(1.67 KB)
📄
functions.php
(36.84 KB)
📄
header-pwa.php
(437 B)
📄
header.php
(1.01 KB)
📄
image.php
(1.38 KB)
ðŸ“
inc
📄
index.php
(3.06 KB)
ðŸ“
languages
📄
offline.php
(210 B)
📄
page.php
(1.26 KB)
ðŸ“
partials
📄
readme.txt
(6.39 KB)
📄
rtl.css
(17.32 KB)
ðŸ“
sass
📄
screenshot.png
(82.88 KB)
📄
search.php
(1.52 KB)
📄
searchform.php
(1.05 KB)
📄
sidebar-left.php
(737 B)
📄
sidebar.php
(872 B)
📄
singular.php
(1.65 KB)
📄
style.css
(2.09 KB)
ðŸ“
templates
ðŸ“
tribe-events
📄
webpack.config.js
(2.15 KB)
ðŸ“
woocommerce
📄
wpml-config.xml
(2.53 KB)
Editing: webpack.config.js
const path = require('path'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); // const CopyPlugin = require("copy-webpack-plugin"); const ImageminPlugin = require('imagemin-webpack-plugin').default; const TerserPlugin = require('terser-webpack-plugin'); module.exports = { mode: 'production', // optimization: { // minimize: true, // minimizer: [new TerserPlugin({ /* additional options here */ })], // }, entry: { 'inc/customizer/assets/js/customize-search': path.resolve( process.cwd(), 'inc/customizer/assets/src/js/customize-search.js' ), }, output: { filename: '[name].js', path: path.resolve(process.cwd()), publicPath: './', }, module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: { loader: 'babel-loader', }, }, { test: /\.(jp?g|png|svg)$/, loader: 'url-loader', }, { test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/, use: [ { loader: 'file-loader', options: { name: '[name].[ext]', outputPath: './assets/dist/fonts/', publicPath: './fonts/', } } ] }, { test: /\.s[ac]ss$/i, use: [{ loader: MiniCssExtractPlugin.loader }, { loader: 'css-loader' }, { loader: 'sass-loader', options: { additionalData: "@import 'node_modules/bootstrap/scss/functions';@import 'node_modules/bootstrap/scss/variables';@import 'node_modules/bootstrap/scss/mixins';" } }, ], }, { test: /\.css$/, use: ['style-loader', 'css-loader'], }, ], }, resolve: { extensions: ['.js', '.jsx'], }, externals: { jquery: 'jQuery', lodash: 'lodash', // Necessary for wp.media script. '@wordpress/i18n': 'wp.i18n', }, plugins: [ new MiniCssExtractPlugin({ // Options similar to the same options in webpackOptions.output // both options are optional filename: '[name].css', chunkFilename: '[id].css', }), // new CopyPlugin({ // patterns: [ { // from: "./assets/src/img", // to: "./assets/dist/img", // } ], // }), new ImageminPlugin({ test: /\.(jpe?g|png|gif|svg)$/i, pngquant: { quality: '9' }, }) ], };
Upload File
Create Folder