Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
templates
/
pkg-template
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
19fbf128
authored
2018-11-17 21:29:23 +0800
by
McLemore
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
external node_modules
1 parent
5352c106
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
boilerplate/package.json
boilerplate/webpack.config.js
boilerplate/package.json
View file @
19fbf12
...
...
@@ -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"
...
...
boilerplate/webpack.config.js
View file @
19fbf12
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'
,
...
...
Please
register
or
sign in
to post a comment