Skip to content
This repository was archived by the owner on Dec 9, 2021. It is now read-only.

Commit 69285ce

Browse files
committed
Get browserify working.
1 parent b460ce0 commit 69285ce

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Gruntfile.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@ module.exports = function(grunt) {
3535
}
3636
},
3737

38+
// https://github.com/thlorenz/browserify-shim
39+
// https://github.com/thlorenz/browserify-shim/issues/40#issuecomment-40272317
3840
browserify: {
3941
web: {
4042
options: {
41-
},
42-
bundleOptions: {
43-
debug: true
43+
preBundleCB: function(bundle) {
44+
bundle.require('./src/assets/scripts/templates.js');
45+
}
4446
},
4547
files: {
4648
'web/assets/scripts/main.js': ['src/assets/scripts/main.js']

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77
"author": "",
88
"license": "ISC",
99
"browser": {
10-
"jquery": "./src/assets/vendor/jquery/dist/jquery.min.js",
11-
"handlebars": "./src/assets/vendor/handlebars/handlebars.runtime.min.js",
12-
"templates": "./src/assets/scripts/templates.js"
10+
"jquery": "./src/assets/vendor/jquery/dist/jquery.js",
11+
"handlebars": "./src/assets/vendor/handlebars/handlebars.min.js"
1312
},
1413
"browserify-shim": {
1514
"jquery": "global:$",
16-
"Handlebars": "global:Handlebars",
15+
"handlebars": "global:Handlebars",
1716
"three": "global:THREE"
1817
},
1918
"browserify": {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy