Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3432 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3432 Rev 3434
Línea 1... Línea 1...
1
const path = require('path')
1
const path = require('path');
2
const isDevelopment = process.env.NODE_ENV === 'development'
2
const isDevelopment = process.env.NODE_ENV === 'development';
3
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
3
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
4
const TerserPlugin = require('terser-webpack-plugin')
4
const TerserPlugin = require('terser-webpack-plugin');
5
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
5
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
Línea 6... Línea 6...
6
 
6
 
7
// change active path here
7
// change active path here
8
const currentPath = {
8
const currentPath = {
9
  entry: './app/index.jsx',
9
  entry: './app/index.jsx',
10
  output: path.join(__dirname, 'public/bundles'),
10
  output: path.join(__dirname, 'public/bundles'),
11
  filename: 'applicationBundle.js'
11
  filename: 'applicationBundle.js'
Línea 12... Línea 12...
12
}
12
};
13
 
13
 
14
module.exports = {
14
module.exports = {
15
  entry: currentPath.entry,
15
  entry: currentPath.entry,
Línea 19... Línea 19...
19
  },
19
  },
20
  watch: false,
20
  watch: false,
21
  mode: 'production',
21
  mode: 'production',
22
  resolve: {
22
  resolve: {
23
    alias: {
23
    alias: {
24
      ckeditor5: path.resolve(
-
 
25
        __dirname,
-
 
26
        'node_modules/ckeditor5/dist/ckeditor5.js'
24
      ckeditor5: path.resolve(__dirname, 'node_modules/ckeditor5/dist/ckeditor5.js'),
27
      ),
-
 
28
      'ckeditor5.css': path.resolve(
-
 
29
        __dirname,
-
 
30
        'node_modules/ckeditor5/dist/ckeditor5.css'
25
      'ckeditor5.css': path.resolve(__dirname, 'node_modules/ckeditor5/dist/ckeditor5.css'),
31
      ),
-
 
32
      '@components': path.resolve(__dirname, 'app/components/'),
26
      '@components': path.resolve(__dirname, 'app/components/'),
33
      '@constants': path.resolve(__dirname, 'app/constants/'),
27
      '@constants': path.resolve(__dirname, 'app/constants/'),
34
      '@hocs': path.resolve(__dirname, 'app/hocs/index.js'),
28
      '@hocs': path.resolve(__dirname, 'app/hocs/index.js'),
35
      '@hooks': path.resolve(__dirname, 'app/hooks/index.js'),
29
      '@hooks': path.resolve(__dirname, 'app/hooks/index.js'),
36
      '@layouts': path.resolve(__dirname, 'app/layouts/'),
30
      '@layouts': path.resolve(__dirname, 'app/layouts/'),
Línea 106... Línea 100...
106
      new TerserPlugin({
100
      new TerserPlugin({
107
        extractComments: false
101
        extractComments: false
108
      })
102
      })
109
    ]
103
    ]
110
  }
104
  }
111
}
105
};