19fbf128 by McLemore

external node_modules

1 parent 5352c106
......@@ -40,7 +40,8 @@
"typings-for-css-modules-loader": "^1.7.0",
"webpack": "^4.25.1",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.10"
"webpack-dev-server": "^3.1.10",
"webpack-node-externals": "^1.7.2"
},
"files": [
"dist"
......
const path = require('path')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const nodeExternals = require('webpack-node-externals')
module.exports = {
mode: 'production',
......@@ -38,14 +39,7 @@ module.exports = {
]
}]
},
externals: {
react: {
commonjs: 'react',
amd: 'react',
root: 'React',
commonjs2: 'react'
}
},
externals: [nodeExternals()],
plugins: [
new MiniCssExtractPlugin({
filename: '{{ projectName }}.css',
......