Comments (10)
// webpack.config.js
module.exports = {
prefix: 'static'
}
from easywebpack.
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.
@mice33 你的用的是 easywebpack 4 版本 还是 easywebpack 3 版本?看结果好像是 3
from easywebpack.
@hubcarl 我使用的 3,easywebpack-cli 也提交了一个代码修复,你去看看
from easywebpack.
好的,你这种情况可以升级为4 ,你这样是支持的
from easywebpack.
@hubcarl 额,用 3 除非我自己改代码逻辑吧,4 可以用于生产了吗
from easywebpack.
@mice33 4可以用生产, 3的话我刚临时hack支持了一下, 设置 buildDir 为空,只是不规范,你可以用 3 这样配置:
// webpack.config.js
module.exports = {
prefix: 'static',
entry: {
buildDir: ''
}
}
然后更新一下 easywebpack 3的依赖为 3.7.3,重新安装 具体见:2fed25b
from easywebpack.
唔 那你需要把 easywebpack-html 里的依赖更新一下,版本还是 "easywebpack": "^3.5.0",我删除 package-lock.json 重新安装几次了,package-lock.json 里只能安装到 "easywebpack": "version": "3.7.1",
from easywebpack.
@mice33 npm cache clean --force 然后重新安装一下试试, 如果慢,可以
npm install --registry https://registry.npm.taobao.org
from easywebpack.
@hubcarl 我已经迁移成项目里自己调用 easywebpack 了,然后 easywebpack-cli 又提交了一个修复
from easywebpack.
Related Issues (20)
- easy zip/tar --filename [filename] //filename 未生效 HOT 1
- egg + vue + ts 的项目,只要npm run debug 就会卡在一个webpack努力编译中的页面,求解!!!! HOT 12
- url-loader options 存在bug HOT 5
- 请教一下,easy zip 的执行流程在哪看? HOT 4
- 静态js文件修改没有热更新 HOT 3
- easywebpack cssModule 源码没找到在哪 HOT 2
- 修改publicpath 出现问题
- webpack的alias配置咨询 HOT 1
- 关于webpack.config.js的externals配置问题
- 网卡名问题,,en0, en1 HOT 4
- webpack pulicPath不支持相对路径 HOT 1
- webpack 无法热更新。 HOT 1
- utils.checkDllUpdate should handle publicPath changed
- use easywebpack cli to initialize a application which use [email protected] , start node server by npm run dev, all static resouces 404 HOT 1
- alias needed for "mini-css-extract-plugin".loader
- optimize.js | splitChunks rules: need handle node_modules in windows
- 如何通过webpack配置去掉view文件中存在的一堆css样式代码
- 使用webpack5需要将thread-loader依赖升级到最新 HOT 1
- 如何配置pwa?
- 该项目不维护了吗?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easywebpack.