Browse Source

remove javascript file, who server will try to avoid javascript as long as possible

master
Adrian Malacoda 3 years ago
parent
commit
07fb3caf8d
  1. 8
      build.rs
  2. 4
      res/index.js

8
build.rs

@ -36,14 +36,6 @@ fn main() {
template_name: Some("error"),
..Default::default()
})
.add(Resource {
source: browserify("res/index.js", "index.js"),
mount_at: Some(ResourceMount {
endpoint: String::from("/index.js"),
content_type: "JavaScript",
}),
..Default::default()
})
.add(Resource {
source: sass("res/index.scss", "index.css"),
mount_at: Some(ResourceMount {

4
res/index.js

@ -1,4 +0,0 @@
function foo ()
{
console.log("bar");
}
Loading…
Cancel
Save