Using vue-cli, to bring in resources in the development environment using import, and using cdn in the production environment to introduce the resources you need, what should you do?

what should I do if I use vue-cli, to bring in resources in the development environment using import, and in the production environment to use cdn to introduce the resources I need?

May.11,2021

index.js, of config folder modifies build configuration item:

module.exports = {
    dev: {
        // ...
        assetsSubDirectory: 'static',
        assetsPublicPath: '/',
        // ...
    },
    build: {
        // ...
        assetsRoot: path.resolve(__dirname, '../../dist'),
        assetsSubDirectory: 'static',
        assetsPublicPath: `${settings.cdn}/`,
        // ...
    }
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37880-2ade5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37880-2ade5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?