File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
const { resolve } = require ( 'path' )
2
2
3
- module . exports = function interpolation ( ) {
4
- this . addPlugin ( path . resolve ( __dirname , 'templates/plugin.js' ) )
3
+ module . exports = function ( ) {
4
+ this . addPlugin ( {
5
+ src : resolve ( __dirname , './templates/plugin.js' ) ,
6
+ fileName : 'interpolation.js' ,
7
+ ssr : false
8
+ } )
5
9
}
6
10
7
11
// REQUIRED if publishing as an npm package
8
- module . exports . meta = require ( './package.json' )
12
+ // module.exports.meta = require('./package.json')
Original file line number Diff line number Diff line change 2
2
"name" : " nuxt-interpolation" ,
3
3
"version" : " 0.2.1" ,
4
4
"description" : " Directive for binding every link to catch the click event, and if it's a relative link router will push." ,
5
- "main" : " index .js" ,
5
+ "main" : " lib/module .js" ,
6
6
"directories" : {
7
7
"lib" : " lib"
8
8
},
You can’t perform that action at this time.
0 commit comments