0๐
You can add another entry
point and give it a name using webpack chain
in your vue.config.js
. This will automagically be inserted in your index.html
file:
// vue.config.js
module.exports = {
chainWebpack: (config) => {
config
.entry('delaunay')
.add('src/assets/delaunay.js')
.end()
}
}
This should work for you in practice.
0๐
in your js file you can do this:
import delaunay from './src/assets/delaunay.js'
import bg from './src/assets/bg.js'
- [Vuejs]-Learning JEST w Vue.js : error on forst example test
- [Vuejs]-Nuxt.js โ console.log build version
Source:stackexchange.com