Giter VIP home page Giter VIP logo

Comments (10)

hubcarl avatar hubcarl commented on May 14, 2024
// webpack.config.js
module.exports = {
 prefix: 'static'
}

from easywebpack.

mice33 avatar mice33 commented on May 14, 2024

static/js/nunjucks/index.98a9981b.js 186 bytes 1 [emitted] nunjucks/index
static/about/about.html 579 bytes [emitted]

设置 config.prefix 后,编译的 html 也在 static 目录里了

from easywebpack.

hubcarl avatar hubcarl commented on May 14, 2024

@mice33 你的用的是 easywebpack 4 版本 还是 easywebpack 3 版本?看结果好像是 3

from easywebpack.

mice33 avatar mice33 commented on May 14, 2024

@hubcarl 我使用的 3,easywebpack-cli 也提交了一个代码修复,你去看看

from easywebpack.

hubcarl avatar hubcarl commented on May 14, 2024

好的,你这种情况可以升级为4 ,你这样是支持的

from easywebpack.

mice33 avatar mice33 commented on May 14, 2024

@hubcarl 额,用 3 除非我自己改代码逻辑吧,4 可以用于生产了吗

from easywebpack.

hubcarl avatar hubcarl commented on May 14, 2024

@mice33 4可以用生产, 3的话我刚临时hack支持了一下, 设置 buildDir 为空,只是不规范,你可以用 3 这样配置:

// webpack.config.js
module.exports = {
 prefix: 'static',
 entry: {
   buildDir: ''
 }
}

然后更新一下 easywebpack 3的依赖为 3.7.3,重新安装 具体见:2fed25b

from easywebpack.

mice33 avatar mice33 commented on May 14, 2024

唔 那你需要把 easywebpack-html 里的依赖更新一下,版本还是 "easywebpack": "^3.5.0",我删除 package-lock.json 重新安装几次了,package-lock.json 里只能安装到 "easywebpack": "version": "3.7.1",

from easywebpack.

hubcarl avatar hubcarl commented on May 14, 2024

@mice33 npm cache clean --force 然后重新安装一下试试, 如果慢,可以

npm install --registry https://registry.npm.taobao.org

from easywebpack.

mice33 avatar mice33 commented on May 14, 2024

@hubcarl 我已经迁移成项目里自己调用 easywebpack 了,然后 easywebpack-cli 又提交了一个修复

from easywebpack.

Related Issues (20)

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.