|
@@ -11,17 +11,17 @@ module.exports = {
|
11
|
11
|
filename: isProduction ? 'pageHtml.app.js' : 'pageHtml.app.dev.js',
|
12
|
12
|
pathinfo: !isProduction,
|
13
|
13
|
library: isProduction ? 'appPageHtml' : undefined,
|
14
|
|
- libraryTarget: isProduction ? 'var' : undefined,
|
|
14
|
+ libraryTarget: isProduction ? 'var' : undefined
|
15
|
15
|
},
|
16
|
16
|
externals: {},
|
17
|
|
- // isProduction ? { // Côme - since plugins are imported through <script>, cannot externalize libraries
|
18
|
|
- // react: {commonjs: 'react', commonjs2: 'react', amd: 'react', root: '_'},
|
19
|
|
- // 'react-dom': {commonjs: 'react-dom', commonjs2: 'react-dom', amd: 'react-dom', root: '_'},
|
20
|
|
- // classnames: {commonjs: 'classnames', commonjs2: 'classnames', amd: 'classnames', root: '_'},
|
21
|
|
- // 'prop-types': {commonjs: 'prop-types', commonjs2: 'prop-types', amd: 'prop-types', root: '_'},
|
22
|
|
- // tracim_lib: {commonjs: 'tracim_lib', commonjs2: 'tracim_lib', amd: 'tracim_lib', root: '_'}
|
23
|
|
- // }
|
24
|
|
- // : {},
|
|
17
|
+ // isProduction ? { // Côme - since plugins are imported through <script>, cannot externalize libraries
|
|
18
|
+ // react: {commonjs: 'react', commonjs2: 'react', amd: 'react', root: '_'},
|
|
19
|
+ // 'react-dom': {commonjs: 'react-dom', commonjs2: 'react-dom', amd: 'react-dom', root: '_'},
|
|
20
|
+ // classnames: {commonjs: 'classnames', commonjs2: 'classnames', amd: 'classnames', root: '_'},
|
|
21
|
+ // 'prop-types': {commonjs: 'prop-types', commonjs2: 'prop-types', amd: 'prop-types', root: '_'},
|
|
22
|
+ // tracim_lib: {commonjs: 'tracim_lib', commonjs2: 'tracim_lib', amd: 'tracim_lib', root: '_'}
|
|
23
|
+ // }
|
|
24
|
+ // : {},
|
25
|
25
|
devServer: {
|
26
|
26
|
contentBase: path.join(__dirname, 'dist/'),
|
27
|
27
|
port: 8071,
|
|
@@ -68,7 +68,7 @@ module.exports = {
|
68
|
68
|
resolve: {
|
69
|
69
|
extensions: ['.js', '.jsx']
|
70
|
70
|
},
|
71
|
|
- plugins:[
|
|
71
|
+ plugins: [
|
72
|
72
|
...[], // generic plugins always present
|
73
|
73
|
...(isProduction
|
74
|
74
|
? [ // production specific plugins
|