mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-07-06 23:58:46 +02:00
rename bundles folder into assets
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
</conditions>
|
||||
|
||||
<resources>
|
||||
<script>plugins/scm-git-plugin.bundle.js</script>
|
||||
<script>assets/scm-git-plugin.bundle.js</script>
|
||||
</resources>
|
||||
|
||||
</plugin>
|
||||
|
||||
@@ -61,7 +61,7 @@ module.exports = {
|
||||
]
|
||||
},
|
||||
output: {
|
||||
path: path.join(__dirname, "target", "scm-git-plugin-2.0.0-SNAPSHOT", "webapp", "plugins"),
|
||||
path: path.join(__dirname, "target", "scm-git-plugin-2.0.0-SNAPSHOT", "webapp", "assets"),
|
||||
filename: "[name].bundle.js",
|
||||
library: "scm-git-plugin",
|
||||
libraryTarget: "amd"
|
||||
|
||||
@@ -57,7 +57,7 @@ jo
|
||||
</conditions>
|
||||
|
||||
<resources>
|
||||
<script>plugins/scm-hg-plugin.bundle.js</script>
|
||||
<script>assets/scm-hg-plugin.bundle.js</script>
|
||||
</resources>
|
||||
|
||||
</plugin>
|
||||
|
||||
@@ -61,7 +61,7 @@ module.exports = {
|
||||
]
|
||||
},
|
||||
output: {
|
||||
path: path.join(__dirname, "target", "scm-hg-plugin-2.0.0-SNAPSHOT", "webapp", "plugins"),
|
||||
path: path.join(__dirname, "target", "scm-hg-plugin-2.0.0-SNAPSHOT", "webapp", "assets"),
|
||||
filename: "[name].bundle.js",
|
||||
library: "scm-hg-plugin",
|
||||
libraryTarget: "amd"
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
</conditions>
|
||||
|
||||
<resources>
|
||||
<script>plugins/scm-legacy-plugin.bundle.js</script>
|
||||
<script>assets/scm-legacy-plugin.bundle.js</script>
|
||||
</resources>
|
||||
|
||||
</plugin>
|
||||
|
||||
@@ -61,7 +61,7 @@ module.exports = {
|
||||
]
|
||||
},
|
||||
output: {
|
||||
path: path.join(__dirname, "target", "scm-legacy-plugin-2.0.0-SNAPSHOT", "webapp", "plugins"),
|
||||
path: path.join(__dirname, "target", "scm-legacy-plugin-2.0.0-SNAPSHOT", "webapp", "assets"),
|
||||
filename: "[name].bundle.js",
|
||||
library: "scm-legacy-plugin",
|
||||
libraryTarget: "amd"
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
</conditions>
|
||||
|
||||
<resources>
|
||||
<script>plugins/scm-svn-plugin.bundle.js</script>
|
||||
<script>assets/scm-svn-plugin.bundle.js</script>
|
||||
</resources>
|
||||
|
||||
</plugin>
|
||||
|
||||
@@ -61,7 +61,7 @@ module.exports = {
|
||||
]
|
||||
},
|
||||
output: {
|
||||
path: path.join(__dirname, "target", "scm-svn-plugin-2.0.0-SNAPSHOT", "webapp", "plugins"),
|
||||
path: path.join(__dirname, "target", "scm-svn-plugin-2.0.0-SNAPSHOT", "webapp", "assets"),
|
||||
filename: "[name].bundle.js",
|
||||
library: "scm-svn-plugin",
|
||||
libraryTarget: "amd"
|
||||
|
||||
@@ -97,8 +97,8 @@
|
||||
<failOnMissingWebXml>false</failOnMissingWebXml>
|
||||
<webResources>
|
||||
<resource>
|
||||
<directory>target/bundles</directory>
|
||||
<targetPath>bundles</targetPath>
|
||||
<directory>target/assets</directory>
|
||||
<targetPath>assets</targetPath>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>ui-webapp/public</directory>
|
||||
|
||||
@@ -58,7 +58,7 @@ module.exports = {
|
||||
]
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, "..", "target", "bundles"),
|
||||
path: path.resolve(__dirname, "..", "target", "assets"),
|
||||
filename: "[name].bundle.js"
|
||||
},
|
||||
devServer: {
|
||||
@@ -77,6 +77,6 @@ module.exports = {
|
||||
};
|
||||
app.use(createIndexMiddleware(templatePath, renderParams));
|
||||
},
|
||||
publicPath: '/bundles/'
|
||||
publicPath: '/assets/'
|
||||
}
|
||||
};
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<script>
|
||||
window.ctxPath = "{{ contextPath }}";
|
||||
</script>
|
||||
<script src="{{ contextPath }}/bundles/webapp.bundle.js"></script>
|
||||
<script src="{{ contextPath }}/assets/webapp.bundle.js"></script>
|
||||
|
||||
{{#liveReloadURL}}
|
||||
<script src="{{liveReloadURL}}"></script>
|
||||
|
||||
@@ -10,6 +10,7 @@ import * as ReactI18Next from "react-i18next";
|
||||
import * as ClassNames from "classnames";
|
||||
import * as UIExtensions from "@scm-manager/ui-extensions";
|
||||
import * as UIComponents from "@scm-manager/ui-components";
|
||||
import { urls } from "@scm-manager/ui-components";
|
||||
|
||||
/**
|
||||
credentials: "same-origin",
|
||||
@@ -21,7 +22,7 @@ import * as UIComponents from "@scm-manager/ui-components";
|
||||
*/
|
||||
|
||||
SystemJS.config({
|
||||
baseURL: "/plugins",
|
||||
baseURL: urls.withContextPath("/assets"),
|
||||
meta: {
|
||||
"/*": {
|
||||
esModule: true,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// setup webpack public path:
|
||||
// https://stackoverflow.com/questions/39879680/example-of-setting-webpack-public-path-at-runtime
|
||||
// https://github.com/coryhouse/react-slingshot/pull/207/files
|
||||
__webpack_public_path__ = window.ctxPath + "/bundles/";
|
||||
__webpack_public_path__ = window.ctxPath + "/assets/";
|
||||
|
||||
Reference in New Issue
Block a user