Last active
December 6, 2017 15:07
-
-
Save nulpatrol/116f4342cfc7a816abe2930ab1917d4a to your computer and use it in GitHub Desktop.
Async components - Vue
This file contains hidden or 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
| { | |
| "presets": ["es2015", "es2016", "es2017"], | |
| "plugins": ["transform-runtime", "syntax-dynamic-import"] | |
| } |
This file contains hidden or 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
| yarn add babel-plugin-syntax-dynamic-import --dev |
This file contains hidden or 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
| const { mix } = require('laravel-mix'); | |
| mix.js('resources/assets/js/app.js', 'public/js') | |
| .sass('resources/assets/sass/app.scss', 'public/css') | |
| .webpackConfig({ | |
| module: { | |
| rules: [ | |
| { | |
| test: /\.(js|vue)$/, | |
| enforce: 'pre', | |
| loader: 'eslint-loader', | |
| options: { | |
| failOnError: true, | |
| }, | |
| }, | |
| ], | |
| }, | |
| output: { | |
| publicPath: '/', | |
| chunkFilename: 'js/[name].js', | |
| }, | |
| }).version(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment