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"] extensions: [".js", ".vue"]
}, },
entry: { entry: {
serviceWorker: [helpers.root("src/service-worker", "service-worker")] serviceWorker: [helpers.root("frontend/service-worker", "service-worker")]
}, },
optimization: { optimization: {
minimizer: [] minimizer: []
@@ -19,7 +19,7 @@ const ServiceWorkerConfig = {
{ {
test: /\.js$/, test: /\.js$/,
loader: "babel-loader", 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"], extensions: [".js", ".vue"],
alias: { alias: {
vue$: isDev ? "vue/dist/vue.min.js" : "vue/dist/vue.min.js", vue$: isDev ? "vue/dist/vue.min.js" : "vue/dist/vue.min.js",
"@": helpers.root("src") "@": helpers.root("frontend")
} }
}, },
entry: { entry: {
vinlottis: helpers.root("src", "vinlottis-init") vinlottis: helpers.root("frontend", "vinlottis-init")
}, },
externals: { externals: {
moment: 'moment' // comes with chart.js moment: 'moment' // comes with chart.js
@@ -40,7 +40,7 @@ const webpackConfig = function(isDev) {
{ {
test: /\.js$/, test: /\.js$/,
use: [ "babel-loader" ], use: [ "babel-loader" ],
include: [helpers.root("src")] include: [helpers.root("frontend")]
}, },
{ {
test: /\.css$/, test: /\.css$/,

View File

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

View File

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