Code Monkey home page Code Monkey logo

vue2-koa2-ssr's Introduction

vue2-koa2-ssr

vue2 跟 koa2 的SSR 之旅

开发模式

yarn/npm run dev

生产模式

yarn/npm run build 打包代码和bundle

yarn/npm run start

博客地址

vue2-koa2-ssr's People

Contributors

cd-dongzi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vue2-koa2-ssr's Issues

请求

请问您下,为什么node 控制台一直在打console

Path variable [contenthash] not implemented in this context: static/css/[ name].[contenthash].css

在clone代码后,运行npm install之后,再运行npm run dev 时会报
npm run dev

[email protected] dev D:\workspace\vue2-koa2-ssr
nodemon code/server/babel.js

[nodemon] 1.17.3
[nodemon] to restart at any time, enter rs
[nodemon] watching: .
[nodemon] starting node code/server/babel.js
(node:7372) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .h ooks instead
server is running at http://192.168.0.105:3000
D:\workspace\vue2-koa2-ssr\node_modules\webpack\lib\TemplatedPathPlugin.js:43
throw new Error(
^

Error: Path variable [contenthash] not implemented in this context: static/css/[ name].[contenthash].css
at fn (D:\workspace\vue2-koa2-ssr\node_modules\webpack\lib\TemplatedPathPlug in.js:43:11)
at fn (D:\workspace\vue2-koa2-ssr\node_modules\webpack\lib\TemplatedPathPlug in.js:31:16)
at String.replace ()
at replacePathVariables (D:\workspace\vue2-koa2-ssr\node_modules\webpack\lib \TemplatedPathPlugin.js:98:5)
at SyncWaterfallHook.eval (eval at create (D:\workspace\vue2-koa2-ssr\node_m odules\tapable\lib\HookCodeFactory.js:17:12), :7:16)
at MainTemplate.getAssetPath (D:\workspace\vue2-koa2-ssr\node_modules\webpac k\lib\MainTemplate.js:387:31)
at Compilation.getPath (D:\workspace\vue2-koa2-ssr\node_modules\webpack\lib\ Compilation.js:1807:28)
at getPath (D:\workspace\vue2-koa2-ssr\node_modules\extract-text-webpack-plu gin\dist\index.js:315:51)
at ExtractTextPlugin.extractedChunks.forEach.extractedChunk (D:\workspace\vu e2-koa2-ssr\node_modules\extract-text-webpack-plugin\dist\index.js:323:83)
at Array.forEach ()
at compilation.hooks.additionalAssets.tapAsync.assetCb (D:\workspace\vue2-ko a2-ssr\node_modules\extract-text-webpack-plugin\dist\index.js:301:25)
at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\workspace\vue2-ko a2-ssr\node_modules\tapable\lib\HookCodeFactory.js:24:12), :7:1)
at AsyncSeriesHook.lazyCompileHook [as _callAsync] (D:\workspace\vue2-koa2-s sr\node_modules\tapable\lib\Hook.js:35:21)
at hooks.optimizeTree.callAsync.err (D:\workspace\vue2-koa2-ssr\node_modules \webpack\lib\Compilation.js:954:32)
at _err0 (eval at create (D:\workspace\vue2-koa2-ssr\node_modules\tapable\li b\HookCodeFactory.js:24:12), :11:1)
at _async2.default.forEach.err (D:\workspace\vue2-koa2-ssr\node_modules\extr act-text-webpack-plugin\dist\index.js:296:11)
[nodemon] app crashed - waiting for file changes before starting...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.