Renamed /src to /frontend.
This commit is contained in:
@@ -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")]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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$/,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user