Git Product home page Git Product logo

Comments (7)

hayvane avatar hayvane commented on May 22, 2024 1

是的,我的意思是生成多个.js 文件,一个vue文件对应生成一个js文件。
这个我自己改好了,关了吧。

from weex-vue-starter-kit.

csvwolf avatar csvwolf commented on May 22, 2024

@QingWei-Li

from weex-vue-starter-kit.

duke-lv avatar duke-lv commented on May 22, 2024

@hayvane run dev 是在内存跑的吧,只有build才是生成的打包文件。

from weex-vue-starter-kit.

py389172739 avatar py389172739 commented on May 22, 2024

@hayvane 请问你生成多个js怎么弄的?webpack怎么配置的,我弄了半天都没弄好,我也是做native开发的

from weex-vue-starter-kit.

snowons avatar snowons commented on May 22, 2024

@py389172739 改写你的webpack.config.js 中的entry,指定多个就可以了
eg:

function getBaseConfig () {
  return {
    entry: {
      'XXXA': path.join(__dirname, 'src', 'your-a.vue?entry=true'),
      'XXXBl': path.join(__dirname, 'src', 'your-b.vue?entry=true')
    },
    output: {
      path: 'dist/bundlejs/',
      filename: '[name].js'
    },
......
.....
}

from weex-vue-starter-kit.

nothing-important avatar nothing-important commented on May 22, 2024

@hayvane 请问你是怎么生成.vue对应的.js的文件呢?

from weex-vue-starter-kit.

hayvane avatar hayvane commented on May 22, 2024

@hayvane 请问你是怎么生成.vue对应的.js的文件呢?

见上文snowons给出的配置

from weex-vue-starter-kit.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.