Best location to put your CSS and JS files in a Mavenized Java Web app?

前端 未结 4 2170
情话喂你
情话喂你 2021-02-08 03:05

I have a Web application in maven that follows this structure:

src
`-- main
    |-- java
    |-- resources
    `-- webapp

Is is better to put i

4条回答
  •  一向
    一向 (楼主)
    2021-02-08 03:54

    Taken from Introduction to the Standard Directory Layout:

    "If there are other contributing sources to the artifact build, they would be under other subdirectories: for example src/main/antlr would contain Antlr grammar definition files."

    So I think src/main/javascript and src/main/css is the right place...

    What do you think?

提交回复
热议问题