Server IP : 184.154.167.98 / Your IP : 3.141.25.100 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/www/contratos/apps/logreader/webpack/ |
Upload File : |
const path = require('path'); const assetsPath = path.resolve(__dirname, '../build'); module.exports = { mode: 'development', devtool: 'cheap-module-source-map', context: path.resolve(__dirname, '..'), entry: { 'main': [ 'react-hot-loader/patch', 'webpack-hot-middleware/client', 'babel-polyfill', './js/index.js' ] }, output: { path: assetsPath, filename: '[name].js', chunkFilename: '[name]-[chunkhash].js', publicPath: '/build/' }, module: { rules: [ { test: /\.(jpe?g|png|gif|svg)$/, loader: 'url-loader', options: { limit: 10240 } }, { test: /\.js$/, exclude: /node_modules/, loaders: ['babel-loader'] }, { test: /\.css$/, use: [ 'style-loader', { loader: 'css-loader', options: { modules: true, localIdentName: '[path][name]__[local]' } }, 'postcss-loader' ] } ] } };