mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-30 04:39:03 +01:00
Use my fork of the node_preamble package.
We'll go back to the published package once mbullington/node_preamble.dart#1 lands. Closes #51
This commit is contained in:
parent
70aa894b2e
commit
71264f83bb
@ -26,6 +26,6 @@ dev_dependencies:
|
||||
grinder: "^0.8.0"
|
||||
http: "^0.11.0"
|
||||
js: "^0.6.0"
|
||||
node_preamble: "^1.0.0"
|
||||
node_preamble: {git: git://github.com/nex3/node_preamble.dart}
|
||||
test: "^0.12.0"
|
||||
yaml: "^2.0.0"
|
||||
|
@ -63,11 +63,7 @@ js() {
|
||||
'-Ddart-version=$_dartVersion',
|
||||
]);
|
||||
var text = destination.readAsStringSync();
|
||||
destination.writeAsStringSync("""
|
||||
${preamble.getPreamble()}
|
||||
global.exports = exports;
|
||||
$text
|
||||
""");
|
||||
destination.writeAsStringSync(preamble.getPreamble() + text);
|
||||
}
|
||||
|
||||
@Task('Build a pure-JS npm package.')
|
||||
|
Loading…
Reference in New Issue
Block a user