Skip to content

Commit 07f2f39

Browse files
committed
update client script name to make errors more clear
1 parent 3d328e5 commit 07f2f39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Then, in your main javascript file, require it up top:
3333

3434
```js
3535
// assets/js/index.js
36-
require('spike-pushstate')
36+
require('spike-pushstate-client')
3737
```
3838

3939
That will do it! By default it will match any file with a `.html` extension, and use the pushState override on it. However, if you want it to match a different pattern, like maybe sugarml files instead, you can just pass a string with a glob matcher as such (string or array):

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = class PushState {
1818
apply (compiler) {
1919
if (!this.files) return
2020
const util = new SpikeUtil(compiler.options)
21-
const tempFile = path.join(util.conf.context, 'node_modules/spike-pushstate.js')
21+
const tempFile = path.join(util.conf.context, 'node_modules/spike-pushstate-client.js')
2222

2323
compiler.plugin('make', (compilation, done) => {
2424
const htmlFiles = util.getSpikeOptions().files.html

0 commit comments

Comments
 (0)