在 mvc 解决方案中存储较少源文件的约定?
这更多的是一个概念性问题,但我想在这里问一下,看看其他人在做什么,也许可以就一个约定达成一致。我维护一个 nuget 包,它安装了几个 css 和 javascript 文件。而且因为 css 是从 less 源文件编译的,所以最近有人要求我将 less 文件包含在包中,以便那些希望自己自定义和编译它的人。现在我在想内容/更少。还有其他建议吗?
克里斯
The is just more of a conceptual question, but I wanted to ask here to see what others are doing and perhaps agree upon a convention. I maintain a nuget package that installs several css and javascript files. And because the css is compiled from less source files, I've recently been asked to include the less files in the package for those that wish to customize and compile it themselves. Right now i'm thinking Content/less. Any other suggestions?
Chris
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
哈哈,真有趣,我前几天还在争论这个问题。
我最终决定采用与您建议的内容几乎相同的内容/更少。但是,如果我的内容文件夹中有很多内容,我倾向于执行
Content/Styles/
在这种情况下,我可能会将 Less 文件夹放在那里。我喜欢在包中包含 Less 文件的想法,但我发现这很有用。
不过还是给 less.js 点赞!太方便了!
Haha, that's funny I was just debating over this the other day.
I ended up settling on pretty much the same thing you suggested
Content/Less
. But if I have a lot of stuff in the content folder I tend to doContent/Styles/
in which case I would probably put the Less folder in there.I like the idea of including the Less files in the package though, I could see that being useful.
Upvote for less.js though! So handy!