forked from RubyLouvre/avalon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrouter.build.js
More file actions
25 lines (25 loc) · 745 Bytes
/
Copy pathrouter.build.js
File metadata and controls
25 lines (25 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
var webpack = require('webpack')
var path = require('path')
//sudo npm install raw-loader webpack grunt@~0.4.0
module.exports = {
entry: {
main: './components/router/main',
},
output: {
path: path.join(__dirname, 'dist'),
filename: '[name].js'
}, //页面引用的文件
module: {
loaders: [
//http://react-china.org/t/webpack-extracttextplugin-autoprefixer/1922/4
// https://github.com/b82/webpack-basic-starter/blob/master/webpack.config.js
{ test: /\.html$/, loader: 'raw' },
]
},
resolve: {
alias: {
'avalon': path.join(__dirname,'./dist/avalon.modern')
},
extensions: ['.js', '', 'html']
}
}