File tree 4 files changed +17
-8
lines changed
4 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="utf-8 ">
5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
- < meta name ="viewport " content ="width=device-width,initial-scale=1.0 ">
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< link rel ="icon " href ="<%= BASE_URL %>favicon.ico ">
8
8
< title > < %= VUE_APP_NAME %> </ title >
9
9
</ head >
10
10
< body >
11
11
< noscript >
12
- < strong > We're sorry but < %= VUE_APP_NAME %> doesn't work properly without JavaScript enabled. Please enable it to
13
- continue.</ strong >
12
+ < strong > We're sorry but < %= VUE_APP_NAME %> doesn't work properly without JavaScript enabled. Please enable it to continue.</ strong >
14
13
</ noscript >
15
14
< div id ="app "> </ div >
16
15
<!-- built files will be auto injected -->
Original file line number Diff line number Diff line change 1
1
const fs = require ( 'fs' )
2
2
3
+ if ( ! fs . existsSync ( './.env' ) ) {
4
+ fs . copyFileSync ( './.env.example' , './.env' )
5
+ }
6
+
7
+ const publicVendorPath = './public/vendors'
3
8
const vendors = {
4
- // './node_modules/bootstrap/dist': './public/vendors/ bootstrap/dist' ,
9
+ './node_modules/bootstrap/dist' : ` ${ publicVendorPath } / bootstrap/dist` ,
5
10
}
6
11
Object . keys ( vendors ) . forEach ( source => {
12
+ if ( ! fs . existsSync ( source ) ) {
13
+ return
14
+ }
7
15
const destination = vendors [ source ]
8
16
if ( ! fs . existsSync ( destination ) ) {
9
17
fs . mkdirSync ( destination , { recursive : true } )
Original file line number Diff line number Diff line change
1
+ import { env } from './env'
2
+
1
3
export const localization = {
2
4
locale : {
3
- default : 'en' ,
4
- fallback : 'en' ,
5
+ default : env . VUE_APP_LOCALE || 'en' ,
6
+ fallback : env . VUE_APP_FALLBACK_LOCALE || 'en' ,
5
7
6
8
supported : [ 'en' , 'vi' ] ,
7
9
} ,
Original file line number Diff line number Diff line change 1
- <template >
2
- < router-view />
1
+ <template lang="pug" >
2
+ router-view
3
3
</template >
4
4
5
5
<script >
You can’t perform that action at this time.
0 commit comments