Can I edit vuejs * .vue component files in Visual Studio 2017 with highlighting and intellisense support for HTML, TypeScript, and SCSS?
I am currently splitting various sections into different files:
<!-- my-component.vue opened in HTML editor --> <template> <div> text </div> </template> <script src="./path/to/my-component.ts"></script> <style src="./path/to/my-component.scss"></style>
. HTML , , , CSS, JavaScript Razor (ASP.NET). . TypeScript SCSS , , .
VS. vuejs , . , .
( : , HTML SCSS VS. TypeScript, .)
, Visual Studio 2017. (, scss)
:
vue-cli
VuePack - https://marketplace.visualstudio.com/items?itemName=MadsKristensen.VuejsPack-18329
VuePack
: dotnet new --install Microsoft.AspNetCore.SpaTemplates::*
dotnet new --install Microsoft.AspNetCore.SpaTemplates::*
, , :
dotnet new vue
npm install
. / Visual studio 2017.
.vue. :
.vue
webpack.config.js, module = > , : { test: /\.vue$/, include: /ClientApp/, loader: 'vue-loader', options: { loaders: { js: 'awesome-typescript-loader?silent=true' } } },
webpack.config.js
{ test: /\.vue$/, include: /ClientApp/, loader: 'vue-loader', options: { loaders: { js: 'awesome-typescript-loader?silent=true' } } },
TypeScript - Loading... - , tsconfig.json - :
Loading...
tsconfig.json
"awesomeTypescriptLoaderOptions": { "useWebpackText": true, "useCache": true, "useTranspileModule": true }
.
, :
http://www.dotnetcurry.com/aspnet/1383/modern-web-dev-aspnet-core-webpack-vuejs
https://github.com/MarkPieszak/aspnetcore-Vue-starter
https://herringtondarkholme.imtqy.com/2016/10/03/vue2-ts2/
, Visual Studio Vue Vetur: https://github.com/vuejs/vetur, Visual Studio.
i django. , , , , , .
There is a Vue plugin for Visual Studio called VuePack, which will provide the best experience for the individual VUE VUE files located here: https://marketplace.visualstudio.com/items?itemName=MadsKristensen.VuejsPack-18329
Source: https://habr.com/ru/post/1666665/More articles:What controls accent colors in the Vivaldi browser? - htmlКорневой доступ для ноутбука Jupyter/iPython - bashHow to get a column with a data type as a “list” from a Cassandra table? - javaAngularJS How to access the parameter of one ngController in another ngController - javascriptCreating SSIS packages with BIML that use stored procedures with temporary tables - sql-serverWindows form with a transparent background that you can click on - c #Прозрачная форма Windows, которая может обрабатывать Click - c#Mediawiki php: how to get the name of the user who uploaded the file? - phpOne pagination for multiple queries (or how to group one query) - wordpressУстановка строки подключения с именем пользователя и паролем в ASP.Core MVC - c#All Articles