Skip to content

Commit

Permalink
Merge pull request #2896 from kazupon/resolve_vue_extension
Browse files Browse the repository at this point in the history
support .vue extention resolving
  • Loading branch information
igor-dv authored Feb 9, 2018
2 parents 7f56358 + 10792b7 commit 9881aed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/vue/src/server/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default function(configDir) {
resolve: {
// Since we ship with json-loader always, it's better to move extensions to here
// from the default config.
extensions: ['.js', '.json', '.jsx'],
extensions: ['.js', '.json', '.jsx', '.vue'],
// Add support to NODE_PATH. With this we could avoid relative path imports.
// Based on this CRA feature: https://github.com/facebookincubator/create-react-app/issues/253
modules: ['node_modules'].concat(nodePaths),
Expand Down
2 changes: 1 addition & 1 deletion app/vue/src/server/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default function(configDir) {
resolve: {
// Since we ship with json-loader always, it's better to move extensions to here
// from the default config.
extensions: ['.js', '.json', '.jsx'],
extensions: ['.js', '.json', '.jsx', '.vue'],
// Add support to NODE_PATH. With this we could avoid relative path imports.
// Based on this CRA feature: https://github.com/facebookincubator/create-react-app/issues/253
modules: ['node_modules'].concat(nodePaths),
Expand Down

0 comments on commit 9881aed

Please sign in to comment.