Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e53f25
commit 0bb1b2b
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Using the DevExtreme Vue Components with Vue CLI | ||
|
||
## Create a new Application ## | ||
|
||
Use [Vue CLI](https://cli.vuejs.org/) to create a new project. | ||
|
||
## Add DevExtreme ## | ||
|
||
Follow the [installation](https://github.com/DevExpress/devextreme-vue#installation) section in our Readme. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Using the DevExtreme Vue Integration with Webpack | ||
|
||
## Create a new Application ## | ||
|
||
You can use [the original Vue template on Webpack](https://github.com/vuejs-templates/webpack) or some other starter to create a new project based on Webpack. | ||
|
||
## Add DevExtreme ## | ||
|
||
Follow the [installation](https://github.com/DevExpress/devextreme-vue#installation) section in our Readme. | ||
|
||
## <a name="configuration"></a>Configure Webpack Loaders for DevExtreme Stylesheets ## | ||
|
||
If you are using [the original Vue template on Webpack](https://github.com/vuejs-templates/webpack) | ||
you don't need any extra configuration, since all the required loaders are configured out-of-the-box. | ||
Otherwise, you need to make sure that all the necessary extensions are processed by the corresponding | ||
[loaders](https://webpack.github.io/docs/loaders.html) as described below. | ||
|
||
Go to *webpack.config.js* and configure loaders for css and fonts as follows: | ||
|
||
```js | ||
... | ||
loaders: [ | ||
... | ||
{ test: /\.css$/, loader: "style-loader!css-loader" }, | ||
{ test: /\.(ttf|eot|woff)$/, loader: "file-loader?name=/[name].[ext]" } | ||
] | ||
... | ||
``` | ||
|
||
Also, make sure that *style-loader*, *css-loader* and *file-loader* are installed into your project as npm dev dependencies. | ||
|
||
## Import DevExtreme Stylesheets ## | ||
|
||
Having loaders configured, you need to import the required [DevExtreme css files](https://js.devexpress.com/Documentation/Guide/Themes/Predefined_Themes/). | ||
Go to your main .js file and import the stylesheets as follows: | ||
|
||
```js | ||
... | ||
import 'devextreme/dist/css/dx.common.css'; | ||
import 'devextreme/dist/css/dx.light.css'; | ||
``` |