配置: plugins: [
new HtmlWebpackPlugin(),
new SkeletonPlugin({
pathname: path.resolve(dirname, './shell'), // the path to store shell file
staticDir: path.resolve(dirname, './dist'), // the same as the output.path
routes: ['/', '/shop'], // Which routes you want to generate skeleton screen
})
]
配置: plugins: [ new HtmlWebpackPlugin(), new SkeletonPlugin({ pathname: path.resolve(dirname, './shell'), // the path to store shell file staticDir: path.resolve(dirname, './dist'), // the same as the
output.path
routes: ['/', '/shop'], // Which routes you want to generate skeleton screen }) ]