Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mould-vuecli3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lhfe
mould-vuecli3
Commits
3d2091a4
Commit
3d2091a4
authored
Aug 26, 2020
by
lipengcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
4fde1f1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
vue.config.js
vue.config.js
+12
-3
No files found.
vue.config.js
View file @
3d2091a4
// console.log(`process.env1:`, process.env)
// console.log(`process.env1:`, process.env)
;
console
.
log
(
`process.env.NODE_ENV1:`
,
process
.
env
.
NODE_ENV
)
console
.
log
(
`process.env.NODE_ENV1:`
,
process
.
env
.
NODE_ENV
)
module
.
exports
=
{
module
.
exports
=
{
...
@@ -20,9 +20,18 @@ module.exports = {
...
@@ -20,9 +20,18 @@ module.exports = {
}
}
}
}
},
},
lintOnSave
:
true
,
chainWebpack
:
(
config
)
=>
{
config
.
module
.
rule
(
'eslint'
)
.
use
(
'eslint-loader'
)
.
loader
(
'eslint-loader'
)
.
tap
((
options
)
=>
{
// 保存自动eslint修复
options
.
fix
=
true
return
options
})
},
css
:
{
css
:
{
/*为预处理器 loader 传递自定义选项*/
loaderOptions
:
{
loaderOptions
:
{
sass
:
{
sass
:
{
prependData
:
`@import "@/assets/style/index.scss";`
prependData
:
`@import "@/assets/style/index.scss";`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment