Merge branch 'remove_vue_cli_serve' into 'master'

Remove vue cli serve

See merge request framasoft/mobilizon!129
This commit is contained in:
Thomas Citharel
2019-04-30 14:39:39 +02:00
18 changed files with 61 additions and 113 deletions

View File

@@ -1,10 +0,0 @@
FROM node:10
LABEL maintainer="tcit"
RUN yarn install
RUN yarn upgrade node-sass
WORKDIR /app/js
EXPOSE 8080

View File

@@ -6,7 +6,7 @@
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"analyze-bundle": "yarn run build -- --report-json && webpack-bundle-analyzer ../priv/static/report.json",
"dev": "vue-cli-service serve",
"dev": "vue-cli-service build --watch",
"test:e2e": "vue-cli-service test:e2e",
"test:unit": "vue-cli-service test:unit",
"prepare": "patch-package"

View File

@@ -4,7 +4,7 @@ const path = require('path');
module.exports = {
lintOnSave: false,
runtimeCompiler: true,
outputDir: '../priv/static',
outputDir: '../priv/static/js',
configureWebpack: {
plugins: [
new Dotenv({ path: path.resolve(process.cwd(), '../.env') }),
@@ -18,6 +18,9 @@ module.exports = {
},
],
},
output: {
filename: 'app.js'
}
},
chainWebpack: config => {
config