-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebpack.config.js
44 lines (43 loc) · 1.32 KB
/
webpack.config.js
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
entry: "./client.js",
output: {
path: __dirname,
filename: "static/bundle.js"
},
resolve: {
extensions: ['.js', '.marko', '*.svg']
},
module: {
loaders: [
{
test: /\.marko$/,
loader: 'marko-loader'
},
{
test: /\.svg$/,
loader: "svg-loader"
},
{
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: "url-loader?name=/static/fonts/[name].[ext]&limit=10&mimetype=application/font-woff"
},
{
test: /\.(less|css)$/,
loader: ExtractTextPlugin.extract({
fallback: "style-loader",
use: "css-loader!less-loader"
})
}
/*{
test: /\.css/,
loaders: ['style-loader', 'css-loader'],
include: __dirname + '/node_modules/@salesforce-ux/design-system/assets/styles/salesforce-lightning-design-system.css'
}*/
]
},
plugins: [
// Write out CSS bundle to its own file:
new ExtractTextPlugin('static/bundle.css', { allChunks: true })
]
};