commit 118b53393e60f709c6cbe21762c621029bde8083
parent 6d96bef1777b3773754180d75e3fd394f4156265
Author: Yongbin Kim <iam@yongbin.kim>
Date: Tue, 17 Jan 2023 13:47:23 +0900
fix: _*.scss를 수정했을 때 make styles로 빌드되지 않던 문제 수정
Signed-off-by: Yongbin Kim <iam@yongbin.kim>
Diffstat:
3 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/.idea/watcherTasks.xml b/.idea/watcherTasks.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="ProjectTasksOptions">
+ <TaskOptions isEnabled="true">
+ <option name="arguments" value="$FileDir$/$FileNameWithoutExtension$.css" />
+ <option name="checkSyntaxErrors" value="true" />
+ <option name="description" />
+ <option name="exitCodeBehavior" value="ERROR" />
+ <option name="fileExtension" value="scss" />
+ <option name="immediateSync" value="true" />
+ <option name="name" value="SCSS" />
+ <option name="output" value="$FileDir$/$FileNameWithoutExtension$.css:$FileDir$/$FileNameWithoutExtension$.css.map" />
+ <option name="outputFilters">
+ <array />
+ </option>
+ <option name="outputFromStdout" value="false" />
+ <option name="program" value="make" />
+ <option name="runOnExternalChanges" value="true" />
+ <option name="scopeName" value="Project Files" />
+ <option name="trackOnlyRoot" value="true" />
+ <option name="workingDir" value="$ContentRoot$" />
+ <envs />
+ </TaskOptions>
+ </component>
+</project>
+\ No newline at end of file
diff --git a/.idea/webResources.xml b/.idea/webResources.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="WebResourcesPaths">
+ <contentEntries>
+ <entry url="file://$PROJECT_DIR$">
+ <entryData>
+ <resourceRoots>
+ <path value="file://$PROJECT_DIR$/styles" />
+ </resourceRoots>
+ </entryData>
+ </entry>
+ </contentEntries>
+ </component>
+</project>
+\ No newline at end of file
diff --git a/Makefile b/Makefile
@@ -1,5 +1,6 @@
STYLE_SRC:=$(shell find . -type f -name '*.scss' -not -name '_*.scss')
STYLE_DST:=$(patsubst %.scss,%.css,$(STYLE_SRC))
+STYLE_INC:=$(shell find . -type f -name '_*.scss')
.PHONY: all
.DEFAULT_GOAL: all
@@ -8,5 +9,5 @@ all:
.PHONY: build
styles: $(STYLE_DST)
-%.css: %.scss
+%.css: %.scss $(STYLE_INC)
sass --style=compressed --load-path=styles $< $@