Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
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
edx
edx-platform
Commits
0de0fbb9
Commit
0de0fbb9
authored
Aug 29, 2015
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9519 from edx/ned/sass-import-dot
Add current directory to the sass compilation path.
parents
3c8dbe77
5a3b69ba
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
pavelib/assets.py
+7
-1
pavelib/paver_tests/test_servers.py
+1
-1
No files found.
pavelib/assets.py
View file @
0de0fbb9
...
...
@@ -132,7 +132,10 @@ def compile_coffeescript(*files):
@task
@no_help
@cmdopts
([(
'debug'
,
'd'
,
'Debug mode'
)])
@cmdopts
([
(
'debug'
,
'd'
,
'Debug mode'
),
(
'force'
,
''
,
'Force full compilation'
),
])
def
compile_sass
(
options
):
"""
Compile Sass to CSS.
...
...
@@ -146,6 +149,9 @@ def compile_sass(options):
parts
.
append
(
"--sourcemap"
)
else
:
parts
.
append
(
"--style compressed --quiet"
)
if
options
.
get
(
'force'
):
parts
.
append
(
"--force"
)
parts
.
append
(
"--load-path ."
)
for
load_path
in
SASS_LOAD_PATHS
+
SASS_DIRS
.
keys
():
parts
.
append
(
"--load-path {path}"
.
format
(
path
=
load_path
))
...
...
pavelib/paver_tests/test_servers.py
View file @
0de0fbb9
...
...
@@ -12,7 +12,7 @@ EXPECTED_COFFEE_COMMAND = (
)
EXPECTED_SASS_COMMAND
=
(
"sass --update --cache-location /tmp/sass-cache --default-encoding utf-8 --style compressed"
" --quiet --load-path common/static --load-path common/static/sass"
" --quiet --load-path
. --load-path
common/static --load-path common/static/sass"
" --load-path lms/static/sass --load-path lms/static/certificates/sass"
" --load-path cms/static/sass --load-path common/static/sass"
" lms/static/sass:lms/static/css lms/static/certificates/sass:lms/static/certificates/css"
...
...
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