File manager - Edit - /home/jardides/www/Cloud/apps/groupfolders/webpack.prod.config.js
Back
'use strict'; const webpack = require("webpack"); const path = require("path"); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const CleanPlugin = require('clean-webpack-plugin'); module.exports = { devtool: 'source-map', entry: { app: [ `babel-polyfill`, `whatwg-fetch`, './js/index.js' ], }, output: { path: path.join(__dirname, "build"), filename: "bundle.js", libraryTarget: 'umd', publicPath: '/' }, resolve: { extensions: ['.js'] }, plugins: [ new CleanPlugin(['build']), new ExtractTextPlugin({ filename: 'bundle.css', allChunks: true }), new webpack.NoEmitOnErrorsPlugin(), new webpack.optimize.OccurrenceOrderPlugin(), new webpack.optimize.UglifyJsPlugin(), new webpack.DefinePlugin({ 'process.env': { NODE_ENV: JSON.stringify('production') } }), ], module: { rules: [ { test: /\.js$/, use: ['babel-loader'] }, { test: /\.css$/, use: ExtractTextPlugin.extract({ fallback: "style-loader", use: ['css-loader', 'postcss-loader'] }) } ] } };
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings