浏览代码

Docs: Fixed a code snipped in the 'Using CKEditor from source' section of the Vue.js component guide to make it work in Windows. Closes ckeditor/ckeditor5-vue#70.

Aleksander Nowodzinski 6 年之前
父节点
当前提交
c06d510fe0
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      docs/builds/guides/frameworks/vuejs.md

+ 2 - 1
docs/builds/guides/frameworks/vuejs.md

@@ -199,6 +199,7 @@ npm install --save \
 Edit the `vue.config.js` file and use the following configuration. If the file is not present, create it in the root of the application (i.e. next to `package.json`):
 
 ```js
+const path = require( 'path' );
 const CKEditorWebpackPlugin = require( '@ckeditor/ckeditor5-dev-webpack-plugin' );
 const { styles } = require( '@ckeditor/ckeditor5-dev-utils' );
 
@@ -234,7 +235,7 @@ module.exports = {
 		//		svgRule.uses.clear();
 		//
 		// * or exclude ckeditor directory from node_modules:
-		svgRule.exclude.add( __dirname + '/node_modules/@ckeditor' );
+		svgRule.exclude.add( path.join( __dirname, 'node_modules', '@ckeditor' ) );
 
 		// Add an entry for *.svg files belonging to CKEditor. You can either:
 		//