Browse Source

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

master
Adrian Malacoda 2 years ago
parent
commit
07fb3caf8d
2 changed files with 0 additions and 12 deletions
  1. + 0
    - 8
      build.rs
  2. + 0
    - 4
      res/index.js

+ 0
- 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 {

+ 0
- 4
res/index.js

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

Loading…
Cancel
Save