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
5352c106
authored
2018-11-17 18:22:00 +0800
by
McLemore
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix placeholder
1 parent
f218cf4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
boilerplate/webpack.config.js
boilerplate/webpack.dev.js
boilerplate/webpack.config.js
View file @
5352c10
...
...
@@ -5,9 +5,9 @@ module.exports = {
mode
:
'production'
,
entry
:
'./src/index.tsx'
,
output
:
{
filename
:
'
${projectName
}.js'
,
filename
:
'
{{ projectName }
}.js'
,
path
:
path
.
resolve
(
__dirname
,
'dist'
),
library
:
'
${projectName
}'
,
library
:
'
{{ projectName }
}'
,
libraryTarget
:
'umd'
},
resolve
:
{
...
...
@@ -29,7 +29,7 @@ module.exports = {
loader
:
'css-loader'
,
options
:
{
modules
:
true
,
localIdentName
:
'
${projectName
}__[local]__[hash:base64:5]'
,
localIdentName
:
'
{{ projectName }
}__[local]__[hash:base64:5]'
,
importLoaders
:
1
}
},
{
...
...
@@ -48,7 +48,7 @@ module.exports = {
},
plugins
:
[
new
MiniCssExtractPlugin
({
filename
:
'
${projectName
}.css'
,
filename
:
'
{{ projectName }
}.css'
,
chunkFilename
:
'[id].css'
})
]
...
...
boilerplate/webpack.dev.js
View file @
5352c10
...
...
@@ -28,7 +28,7 @@ module.exports = {
options
:
{
namedExport
:
true
,
modules
:
true
,
localIdentName
:
'
${projectName
}__[local]__[hash:base64:5]'
,
localIdentName
:
'
{{ projectName }
}__[local]__[hash:base64:5]'
,
importLoaders
:
2
}
},
{
...
...
Please
register
or
sign in
to post a comment