Change dir structure

This commit is contained in:
Anton Vakhrushev 2018-06-05 13:14:00 +03:00
parent d88efead90
commit f27fcf1210
4 changed files with 7 additions and 8 deletions

View File

@ -2,11 +2,8 @@ export default class Supervisor {
daemons = []; daemons = [];
constructor(daemons) { constructor(daemons) {
this.daemons = daemons; this.daemons = daemons;
} }
predict(movements) { predict(movements) {}
}
} }

View File

@ -1,6 +1,6 @@
import Vue from 'vue'; import Vue from 'vue';
import './style.css';
import Predictor from './Predictor'; import Predictor from './Predictor';
import './style.css';
new Vue({ new Vue({
el: '#app', el: '#app',

View File

@ -13,6 +13,6 @@
<button value="1" v-on:click="pass(1)">1</button> <button value="1" v-on:click="pass(1)">1</button>
</div> </div>
</main> </main>
<script src="dist/app.js"></script> <script src="/dist/app.js"></script>
</body> </body>
</html> </html>

View File

@ -6,7 +6,8 @@ module.exports = {
entry: path.resolve(__dirname, 'source/index.js'), entry: path.resolve(__dirname, 'source/index.js'),
output: { output: {
filename: 'app.js', filename: 'app.js',
path: path.resolve(__dirname, 'dist'), path: path.resolve(__dirname, 'web/dist'),
publicPath: 'dist/',
}, },
module: { module: {
rules: [ rules: [
@ -29,7 +30,8 @@ module.exports = {
} }
}, },
devServer: { devServer: {
contentBase: path.resolve(__dirname, 'dist'), contentBase: path.resolve(__dirname, 'web'),
index: 'index.html',
host: "0.0.0.0", host: "0.0.0.0",
port: 9000, port: 9000,
} }