Skip to content

Commit dc4a3a5

Browse files
committed
I guess a lot of people will copy this section, and i needed to specify dependsOn in my build for it to work
1 parent d79eed1 commit dc4a3a5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

project/Build.scala

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,9 @@ object ScalajsReact extends Build {
8383

8484
def useReactJs(scope: String = "compile"): PE =
8585
_.settings(
86-
jsDependencies += "org.webjars.npm" % "react" % "0.14.0" % scope / "react-with-addons.js" commonJSName "React",
87-
jsDependencies += "org.webjars.npm" % "react-dom" % "0.14.0" % scope / "react-dom.js" commonJSName "ReactDOM",
88-
// jsDependencies += "org.webjars.bower" % "react" % "0.14.0" % scope / "react-with-addons.js" commonJSName "React",
89-
// jsDependencies += "org.webjars.bower" % "react" % "0.14.0" % scope / "react-dom.js" commonJSName "ReactDOM",
90-
jsDependencies += "org.webjars" % "sizzle" % "2.1.1" % scope / "sizzle.min.js" commonJSName "Sizzle",
86+
jsDependencies += "org.webjars.npm" % "react" % "0.14.0" % scope / "react-with-addons.js" commonJSName "React" minified "react-with-addons.min.js",
87+
jsDependencies += "org.webjars.npm" % "react-dom" % "0.14.0" % scope / "react-dom.js" commonJSName "ReactDOM" minified "react-dom.min.js" dependsOn "react-with-addons.js",
88+
jsDependencies += "org.webjars" % "sizzle" % "2.1.1" % scope / "sizzle.min.js" commonJSName "Sizzle",
9189
skip in packageJSDependencies := false)
9290

9391
def addCommandAliases(m: (String, String)*) = {

0 commit comments

Comments
 (0)