R
R
Roman2018-08-01 16:50:11
JavaScript
Roman, 2018-08-01 16:50:11

How to add block in webpack build?

Good afternoon!
I'm trying to learn node.
At the moment, I'm trying to get the generated page, but that's not the task, the page does not contain, etc. + the style is not included, it only contains the generated .
I run the encore dev build, I get server.js and client.css as output, I launch server.js through v8js
package.json

{
  "name": "test5",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "devDependencies": {
    "webpack-cli": "^3.1.0"
  },
  "private": true,
  "scripts": {
    "dev-server": "encore dev-server",
    "dev": "encore dev",
    "watch": "encore dev --watch",
    "build": "encore production"
  },
  "dependencies": {
    "@symfony/webpack-encore": "^0.20.1",
    "axios": "^0.18.0",
    "babel-loader": "^7.1.5",
    "babel-plugin-transform-object-rest-spread": "^6.26.0",
    "cross-env": "^5.2.0",
    "css-loader": "^1.0.0",
    "encore": "^0.0.30-beta",
    "node-sass": "^4.9.2",
    "sass-loader": "^7.0.3",
    "vue": "^2.5.16",
    "vue-loader": "^14.2.2",
    "vue-material": "^1.0.0-beta-10.2",
    "vue-router": "^3.0.1",
    "vue-server-renderer": "^2.5.16",
    "vue-template-compiler": "^2.5.16",
    "vuex": "^3.0.1",
    "webpack": "^3.11.0"
  }
}

Here is the rest of the code
https://github.com/3110Y/testVueForV8js

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Tabakerka, 2018-08-02
@IvanTabakerka

I really tried to use my brain, but I couldn't.
Here is a cool playlist for vue. It talks about the nuances well.
YouTube

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question