ElementUI / babel-plugin-component

Modular element-ui build plugin for babel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

在laravel里的elixir怎么配置?

woodytang opened this issue · comments

` Elixir.webpack.mergeConfig({
resolveLoader: {
root: path.join(__dirname, 'node_modules'),
},
babel: {
presets: ["es2015", {
"modules": false
}],
plugins: ["component", [{
"libraryName": "element-ui",
"styleLibraryName": "theme-default"
}]]

    },
    module: {
        loaders: [{
            test: /\.css$/,
            loader: 'style!css'
        }]
    }
    

});`

我这样配置没用,压出来还是一样大

看起来配置没错,请给一个 repo 地址