Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
8 years ago
Commit
b2cdda96956299e7d1d3fe14f98c065ca580adbc
1 parent
1ef4600d
'gulpshop'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
static/gulpfile.js
static/gulpfile.js
View file @
b2cdda9
...
...
@@ -130,7 +130,7 @@ function postcssEnvPlugin(env) {
//Postcss开发环境
gulp
.
task
(
'postcss-dev'
,
function
()
{
return
gulp
.
src
([
'sass/
index.css'
,
'sass/shop
.css'
])
return
gulp
.
src
([
'sass/
shop.css'
,
'sass/index
.css'
])
.
pipe
(
sourcemaps
.
init
())
.
pipe
(
postcss
(
postcssEnvPlugin
(
'DEV'
)))
.
pipe
(
sourcemaps
.
write
(
'.'
))
...
...
@@ -143,7 +143,7 @@ gulp.task('postcss-watch', function() {
//Postcss正式环境生成
gulp
.
task
(
'postcss-pro'
,
[
'assets'
],
function
()
{
return
gulp
.
src
([
'sass/
index.css'
,
'sass/shop
.css'
])
return
gulp
.
src
([
'sass/
shop.css'
,
'sass/index
.css'
])
.
pipe
(
postcss
(
postcssEnvPlugin
(
'PRO'
)))
.
pipe
(
cssnano
())
.
pipe
(
gulp
.
dest
(
distDir
.
css
))
...
...
Please
register
or
login
to post a comment