修改编译后访问路径

pull/1/head
Doflatango 8 years ago committed by miraclesu
parent f8f857a184
commit 87ffb0be9e

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<title>Cronsun Managerment</title>
<base href='http://127.0.0.1:7079/ui/'</base>
<style>
.loader, .loader:after {border-radius: 50%; width: 10em; height: 10em;}
.loader {
@ -34,6 +35,6 @@
<div id="app">
<div class="loader"></div>
</div>
<script src="/dist/build.js"></script>
<script src="/ui/dist/build.js"></script>
</body>
</html>
</html>

@ -5,7 +5,7 @@ module.exports = {
entry: './src/main.js',
output: {
path: path.resolve(__dirname, './dist'),
publicPath: '/dist/',
publicPath: '/',
filename: 'build.js'
},
module: {
@ -33,7 +33,8 @@ module.exports = {
test: /\.(png|jpg|gif|svg|ttf|woff|woff2|eot)\w*/,
loader: 'file-loader',
options: {
name: '[name].[ext]?[hash]'
name: '[name].[ext]?[hash]',
publicPath: '/ui/dist/'
}
},
{

Loading…
Cancel
Save