File tree Expand file tree Collapse file tree 5 files changed +79
-0
lines changed Expand file tree Collapse file tree 5 files changed +79
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "name" : " vue-cli" ,
3+ "version" : " 0.1.0" ,
4+ "private" : true ,
5+ "scripts" : {
6+ "serve" : " vue-cli-service serve" ,
7+ "build" : " vue-cli-service build"
8+ },
9+ "dependencies" : {
10+ "vue" : " ^3.3.4"
11+ },
12+ "devDependencies" : {
13+ "@vue/cli-service" : " ~5.0.8" ,
14+ "unplugin-preprocessor-directives" : " workspace:*"
15+ }
16+ }
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="">
3+
4+ < head >
5+ < meta charset ="utf-8 ">
6+ < meta name ="viewport " content ="width=device-width,initial-scale=1.0 ">
7+ < title >
8+ < %= htmlWebpackPlugin.options.title %>
9+ </ title >
10+ <!-- #if (NODE_ENV !== 'production') -->
11+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
12+ <!-- #endif -->
13+ </ head >
14+
15+ < body >
16+ < noscript >
17+ < strong > We're sorry but < %= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
18+ Please enable it to continue.</ strong >
19+ </ noscript >
20+ < div id ="app "> </ div >
21+ <!-- built files will be auto injected -->
22+ </ body >
23+
24+ </ html >
Original file line number Diff line number Diff line change 1+ <script >
2+ export default {
3+ name: ' App' ,
4+ }
5+ </script >
6+
7+ <template >
8+ <!-- #if NODE_ENV !== 'development' -->
9+ <div >if</div >
10+ <!-- #else -->
11+ <div >else</div >
12+ <!-- #endif -->
13+ </template >
Original file line number Diff line number Diff line change 1+ import { createApp } from 'vue'
2+ import App from './App.vue'
3+
4+ createApp ( App ) . mount ( '#app' )
Original file line number Diff line number Diff line change 1+ /**
2+ * @type {import('@vue/cli-service').ProjectOptions }
3+ */
4+
5+ module . exports = {
6+ configureWebpack : {
7+ plugins : [
8+ require ( 'unplugin-preprocessor-directives/webpack' ) ( ) ,
9+ ] ,
10+ } ,
11+ chainWebpack : ( config ) => {
12+ config . module
13+ . rule ( 'html' )
14+ . test ( / \. h t m l $ / )
15+ . use ( 'html-webpack-plugin/loader' )
16+ . loader ( require . resolve ( 'html-webpack-plugin/lib/loader.js' ) )
17+ . options ( {
18+ force : true ,
19+ } )
20+ . end ( )
21+ } ,
22+ }
You can’t perform that action at this time.
0 commit comments