Renamed /src to /frontend.

This commit is contained in:
2020-12-06 21:48:21 +01:00
parent 913268b01c
commit ce7e05fd43
57 changed files with 8 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ const ServiceWorkerConfig = {
extensions: [".js", ".vue"]
},
entry: {
serviceWorker: [helpers.root("src/service-worker", "service-worker")]
serviceWorker: [helpers.root("frontend/service-worker", "service-worker")]
},
optimization: {
minimizer: []
@@ -19,7 +19,7 @@ const ServiceWorkerConfig = {
{
test: /\.js$/,
loader: "babel-loader",
include: [helpers.root("src/service-worker", "service-worker")]
include: [helpers.root("frontend/service-worker", "service-worker")]
}
]
},

View File

@@ -12,11 +12,11 @@ const webpackConfig = function(isDev) {
extensions: [".js", ".vue"],
alias: {
vue$: isDev ? "vue/dist/vue.min.js" : "vue/dist/vue.min.js",
"@": helpers.root("src")
"@": helpers.root("frontend")
}
},
entry: {
vinlottis: helpers.root("src", "vinlottis-init")
vinlottis: helpers.root("frontend", "vinlottis-init")
},
externals: {
moment: 'moment' // comes with chart.js
@@ -40,7 +40,7 @@ const webpackConfig = function(isDev) {
{
test: /\.js$/,
use: [ "babel-loader" ],
include: [helpers.root("src")]
include: [helpers.root("frontend")]
},
{
test: /\.css$/,

View File

@@ -41,7 +41,7 @@ const webpackConfig = merge(commonConfig(false), {
new HtmlWebpackPlugin({
chunks: ["vinlottis"],
filename: "index.html",
template: "./src/templates/Index.html",
template: "./frontend/templates/Index.html",
inject: true,
minify: {
removeComments: true,

View File

@@ -205,8 +205,8 @@ export default {
</script>
<style lang="scss" scoped>
@import "/src/styles/media-queries.scss";
@import "/src/styles/variables.scss";
@import "@/styles/media-queries.scss";
@import "@/styles/variables.scss";
h2 {
text-align: center;
}